[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 10 / 2d559a064efc0ba39195939d23eed990b272d2
1 Return-Path: <sojkam1@fel.cvut.cz>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 11041431FAE\r
6         for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 16:33:40 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id hzCvSD7vRHJK for <notmuch@notmuchmail.org>;\r
16         Thu, 23 Feb 2012 16:33:38 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id E6A09431FC3\r
19         for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 16:33:37 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 82F873CFEB7;\r
22         Fri, 24 Feb 2012 01:33:36 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id mz5evMUfLTKr; Fri, 24 Feb 2012 01:33:35 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id A05B83CFEB0;\r
30         Fri, 24 Feb 2012 01:33:35 +0100 (CET)\r
31 Received: from steelpick.2x.cz (cable-86-56-3-85.cust.telecolumbus.net\r
32         [86.56.3.85]) (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 89809660968;\r
34         Fri, 24 Feb 2012 01:33:35 +0100 (CET)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.77)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1S0j6M-0005kf-UD; Fri, 24 Feb 2012 01:33:34 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH] test: Add test for searching of uncommonly encoded messages\r
41 Date: Fri, 24 Feb 2012 01:33:15 +0100\r
42 Message-Id: <1330043595-22054-1-git-send-email-sojkam1@fel.cvut.cz>\r
43 X-Mailer: git-send-email 1.7.9.1\r
44 In-Reply-To: <877gzd5axk.fsf@steelpick.2x.cz>\r
45 References: <877gzd5axk.fsf@steelpick.2x.cz>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=UTF-8\r
48 Content-Transfer-Encoding: 8bit\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Fri, 24 Feb 2012 00:33:40 -0000\r
62 \r
63 Emails that are encoded differently than as ASCII or UTF-8 are not\r
64 indexed properly by notmuch. It is not possible to search for non-ASCII\r
65 words within those messages.\r
66 ---\r
67  test/encoding    |    9 +++++++++\r
68  test/test-lib.sh |    5 +++++\r
69  2 files changed, 14 insertions(+), 0 deletions(-)\r
70 \r
71 diff --git a/test/encoding b/test/encoding\r
72 index 33259c1..3992b5c 100755\r
73 --- a/test/encoding\r
74 +++ b/test/encoding\r
75 @@ -21,4 +21,13 @@ irrelevant\r
76  \f\r
77 body}\r
78  \f\r
79 message}"\r
80  \r
81 +test_begin_subtest "Search for ISO-8859-2 encoded message"\r
82 +test_subtest_known_broken\r
83 +add_message '[content-type]="text/plain; charset=iso-8859-2"' \\r
84 +            '[content-transfer-encoding]=8bit' \\r
85 +            '[subject]="ISO-8859-2 encoded message"' \\r
86 +            "[body]=$'Czech word tu\350\362\341\350\350\355 means pinguin\'s.'" # ISO-8859-2 characters are generated by shell's escape sequences\r
87 +output=$(notmuch search tučňáččí 2>&1 | notmuch_show_sanitize)\r
88 +test_expect_equal "$output" "thread:0000000000000002   2001-01-05 [1/1] Notmuch Test Suite; ISO-8859-2 encoded message (inbox unread)"\r
89 +\r
90  test_done\r
91 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
92 index 063a2b2..2781506 100644\r
93 --- a/test/test-lib.sh\r
94 +++ b/test/test-lib.sh\r
95 @@ -356,6 +356,11 @@ ${additional_headers}"\r
96  ${additional_headers}"\r
97      fi\r
98  \r
99 +    if [ ! -z "${template[content-transfer-encoding]}" ]; then\r
100 +       additional_headers="Content-Transfer-Encoding: ${template[content-transfer-encoding]}\r
101 +${additional_headers}"\r
102 +    fi\r
103 +\r
104      # Note that in the way we're setting it above and using it below,\r
105      # `additional_headers' will also serve as the header / body separator\r
106      # (empty line in between).\r
107 -- \r
108 1.7.9.1\r
109 \r