1 Return-Path: <amthrax@awakening.csail.mit.edu>
\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 27DDB431FAE
\r
6 for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 18:37:23 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7, WEIRD_QUOTING=0.001] 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 ltj25wWio8SY for <notmuch@notmuchmail.org>;
\r
16 Mon, 26 Mar 2012 18:37:21 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id AB1FD431FAF
\r
20 for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 18:37:21 -0700 (PDT)
\r
21 X-AuditID: 1209190e-b7f7c6d0000008c3-62-4f7119d1b9dc
\r
22 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])
\r
23 by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 83.40.02243.1D9117F4; Mon, 26 Mar 2012 21:37:21 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id q2R1bK93013589;
\r
27 Mon, 26 Mar 2012 21:37:20 -0400
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q2R1bI66004569
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Mon, 26 Mar 2012 21:37:20 -0400 (EDT)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amthrax@awakening.csail.mit.edu>)
\r
36 id 1SCLLa-0005Kc-Ha; Mon, 26 Mar 2012 21:37:18 -0400
\r
37 From: Austin Clements <amdragon@MIT.EDU>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH 1/2] test: Add Emacs test for messages with quotes in their
\r
41 Date: Mon, 26 Mar 2012 21:37:15 -0400
\r
42 Message-Id: <1332812236-20387-2-git-send-email-amdragon@mit.edu>
\r
43 X-Mailer: git-send-email 1.7.7.2
\r
44 In-Reply-To: <1332812236-20387-1-git-send-email-amdragon@mit.edu>
\r
45 References: <1332812236-20387-1-git-send-email-amdragon@mit.edu>
\r
46 X-Brightmail-Tracker:
\r
47 H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsUixCmqrHtRstDfYOs8TovrN2cyOzB6PFt1
\r
48 izmAMYrLJiU1J7MstUjfLoErY+qH+ILrXBVN2++zNjD+5+hi5OSQEDCRWDVxPyuELSZx4d56
\r
49 ti5GLg4hgX2MEn8u7meBcDYwSrROOAOVOckk8fnFYShnM6PEszWvwfrZBDQktu1fzghiiwhI
\r
50 S+y8OxsozsHBLKAm8adLBSQsLBAm8b17DwuIzSKgKnFw/kF2EJtXwEHi2pajbBBnKEjMmHKF
\r
51 EaSVU8BRYuG7UJCwEFDJ8zV7mScw8i9gZFjFKJuSW6Wbm5iZU5yarFucnJiXl1qka6yXm1mi
\r
52 l5pSuokRHDKSfDsYvx5UOsQowMGoxMPbNbPAX4g1say4MvcQoyQHk5IoLy8w4IT4kvJTKjMS
\r
53 izPii0pzUosPMUpwMCuJ8N48CVTOm5JYWZValA+TkuZgURLnVdN65yckkJ5YkpqdmlqQWgST
\r
54 leHgUJLgdQcZKliUmp5akZaZU4KQZuLgBBnOAzRcB6SGt7ggMbc4Mx0if4pRUUqclxEkIQCS
\r
55 yCjNg+uFxfQrRnGgV4R5ZUGqeIDpAK77FdBgJqDBS47kgwwuSURISTUwmrQHbwmf6nLuQHae
\r
56 7LZDM2/IdZy7dPhNxwJ/pq5Xa66e3tr5PFLt/qHWXxtv7ubZEdt5yjTzvI9MZMW1qZUxZmYJ
\r
57 nNObHx1OyGHdbhStq7E/sU/33o2F0wSzxL1D9Fizp9x4zlbKtELf3mGb0oyfEf6KV5xUrk97
\r
58 8JAl/O9DN4EDXA1h31e5KrEUZyQaajEXFScCAB+WYHvEAgAA
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.13
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Tue, 27 Mar 2012 01:37:23 -0000
\r
73 Currently this is broken because Emacs doesn't properly escape double
\r
74 quotes in message IDs.
\r
76 test/emacs | 12 ++++++++++++
\r
77 1 files changed, 12 insertions(+), 0 deletions(-)
\r
79 diff --git a/test/emacs b/test/emacs
\r
80 index 8a28705..62eaedb 100755
\r
83 @@ -139,6 +139,18 @@ test_emacs '(notmuch-search "id:\"123..456@example\"")
\r
84 output=$(notmuch search 'id:"123..456@example"' | notmuch_search_sanitize)
\r
85 test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with .. in Message-Id (inbox search-add show-add)"
\r
87 +test_begin_subtest "Message with quote in Message-Id:"
\r
88 +test_subtest_known_broken
\r
89 +add_message '[id]="\"quote\"@example"' '[subject]="Message with quote in Message-Id"'
\r
90 +test_emacs '(notmuch-search "subject:\"Message with quote\"")
\r
91 + (notmuch-test-wait)
\r
92 + (execute-kbd-macro "+search-add")
\r
93 + (notmuch-search-show-thread)
\r
94 + (notmuch-test-wait)
\r
95 + (execute-kbd-macro "+show-add")'
\r
96 +output=$(notmuch search 'id:"""quote""@example"' | notmuch_search_sanitize)
\r
97 +test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Message with quote in Message-Id (inbox search-add show-add)"
\r
99 test_begin_subtest "Sending a message via (fake) SMTP"
\r
100 emacs_deliver_message \
\r
101 'Testing message sent via SMTP' \
\r