aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test-lib.sh
diff options
context:
space:
mode:
authorGravatar Michal Sojka <sojkam1@fel.cvut.cz>2012-02-24 01:33:15 +0100
committerGravatar David Bremner <bremner@debian.org>2012-02-29 07:34:54 -0400
commit74f8f15adc1e6fce2d3fcc34b7e9ef0b65d926db (patch)
tree2e040ce77090876fa7af391bc03ff75a53afdd3b /test/test-lib.sh
parent13235d35356dd065855d4db4d44da274808407a1 (diff)
test: Add test for searching of uncommonly encoded messages
Emails that are encoded differently than as ASCII or UTF-8 are not indexed properly by notmuch. It is not possible to search for non-ASCII words within those messages.
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r--test/test-lib.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 063a2b27..27815067 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -356,6 +356,11 @@ ${additional_headers}"
${additional_headers}"
fi
+ if [ ! -z "${template[content-transfer-encoding]}" ]; then
+ additional_headers="Content-Transfer-Encoding: ${template[content-transfer-encoding]}
+${additional_headers}"
+ fi
+
# Note that in the way we're setting it above and using it below,
# `additional_headers' will also serve as the header / body separator
# (empty line in between).