1 Return-Path: <flo@chaoflow.net>
\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 1C461431FB5
\r
6 for <notmuch@notmuchmail.org>; Sun, 8 May 2011 16:13:29 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 NC1c5R2vu7yX for <notmuch@notmuchmail.org>;
\r
16 Sun, 8 May 2011 16:13:27 -0700 (PDT)
\r
17 Received: from tesla.chaoflow.net (tesla.chaoflow.net [188.40.54.22])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 7B3DA429E22
\r
21 for <notmuch@notmuchmail.org>; Sun, 8 May 2011 16:13:25 -0700 (PDT)
\r
22 Received: from eve.chaoflow.net (ppp-188-174-25-68.dynamic.mnet-online.de
\r
24 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
25 (No client certificate requested)
\r
26 (Authenticated sender: flo@chaoflow.net)
\r
27 by tesla.chaoflow.net (Postfix) with ESMTPSA id 2AF55C8CD;
\r
28 Mon, 9 May 2011 01:13:24 +0200 (CEST)
\r
29 Received: from eve.fritz.box (eve.chaoflow.net [127.0.0.1])
\r
30 by eve.chaoflow.net (Postfix) with ESMTP id E9F2127D; Sun,
\r
31 8 May 2011 23:13:23 +0000 (Local time zone must be set--see zic manual
\r
33 From: Florian Friesdorf <flo@chaoflow.net>
\r
34 To: notmuch@notmuchmail.org
\r
35 Subject: [PATCH 2/2] test for sanitized notmuch-search output
\r
36 Date: Mon, 9 May 2011 01:13:15 +0200
\r
37 Message-Id: <1304896395-7407-2-git-send-email-flo@chaoflow.net>
\r
38 X-Mailer: git-send-email 1.7.5.1
\r
39 In-Reply-To: <1304896395-7407-1-git-send-email-flo@chaoflow.net>
\r
40 References: <BANLkTi=zkF5UtGPc69O06ZEaaCes-52y4w@mail.gmail.com>
\r
41 <1304896395-7407-1-git-send-email-flo@chaoflow.net>
\r
42 X-Virus-Scanned: clamav-milter 0.96.5 at tesla
\r
43 X-Virus-Status: Clean
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.13
\r
47 List-Id: "Use and development of the notmuch mail system."
\r
48 <notmuch.notmuchmail.org>
\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
52 List-Post: <mailto:notmuch@notmuchmail.org>
\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
56 X-List-Received-Date: Sun, 08 May 2011 23:13:29 -0000
\r
59 test/corpus.ccs/cur/1:2, | 8 ++++++++
\r
60 test/search-output | 8 ++++++++
\r
61 test/test-lib.sh | 12 ++++++++++++
\r
62 3 files changed, 28 insertions(+), 0 deletions(-)
\r
63 create mode 100644 test/corpus.ccs/cur/1:2,
\r
65 diff --git a/test/corpus.ccs/cur/1:2, b/test/corpus.ccs/cur/1:2,
\r
66 new file mode 100644
\r
67 index 0000000..60081c4
\r
69 +++ b/test/corpus.ccs/cur/1:2,
\r
71 +From: "Two =?ISO-8859-1?Q?line=0A_author?=" <two@lineauthor.net>
\r
72 +To: notmuch@notmuchmail.org
\r
73 +Date: Tue, 17 Nov 2009 21:28:37 +0600
\r
74 +Subject: [notmuch] two =?ISO-8859-1?Q?line=0A_subject?=
\r
79 diff --git a/test/search-output b/test/search-output
\r
80 index 33ae119..202c13e 100755
\r
81 --- a/test/search-output
\r
82 +++ b/test/search-output
\r
83 @@ -316,4 +316,12 @@ cat <<EOF >EXPECTED
\r
85 test_expect_equal_file OUTPUT EXPECTED
\r
87 +test_begin_subtest "notmuch search for message with quoted-printable line-breaks in author and subject"
\r
88 +add_email_corpus_control_char_subject
\r
89 +notmuch search "*" > OUTPUT
\r
90 +cat <<EOF >EXPECTED
\r
91 +thread:0000000000000001 2009-11-17 [1/1] Two line? author; [notmuch] two line? subject headers (inbox unread)
\r
93 +test_expect_equal_file OUTPUT EXPECTED
\r
96 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
97 index eaf5051..0990d91 100755
\r
98 --- a/test/test-lib.sh
\r
99 +++ b/test/test-lib.sh
\r
100 @@ -417,6 +417,18 @@ add_email_corpus ()
\r
104 +add_email_corpus_control_char_subject ()
\r
106 + rm -rf ${MAIL_DIR}
\r
107 + if [ -d ../corpus.ccs.mail ]; then
\r
108 + cp -a ../corpus.ccs.mail ${MAIL_DIR}
\r
110 + cp -a ../corpus.ccs ${MAIL_DIR}
\r
111 + notmuch new >/dev/null
\r
112 + cp -a ${MAIL_DIR} ../corpus.ccs.mail
\r
116 test_begin_subtest ()
\r
118 if [ -n "$inside_subtest" ]; then
\r