1 Return-Path: <amdragon@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 394CF431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 11:38:03 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 IfTaRLFTmifa for <notmuch@notmuchmail.org>;
\r
16 Wed, 11 Sep 2013 11:37:55 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id 1E37C431FAF
\r
20 for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 11:37:55 -0700 (PDT)
\r
21 X-AuditID: 1209190c-b7fac8e000006335-c3-5230b882e49e
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 1B.73.25397.288B0325; Wed, 11 Sep 2013 14:37:54 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r8BIbqTN005308;
\r
27 Wed, 11 Sep 2013 14:37:53 -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.8/8.12.4) with ESMTP id r8BIbo37017419
\r
32 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
\r
33 Wed, 11 Sep 2013 14:37:51 -0400
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1VJpIT-0006X4-TO; Wed, 11 Sep 2013 14:37:49 -0400
\r
37 Date: Wed, 11 Sep 2013 14:37:49 -0400
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Jani Nikula <jani@nikula.org>
\r
40 Subject: Re: [PATCH v2 1/2] test: add known broken tests for known broken RFC
\r
42 Message-ID: <20130911183749.GJ1426@mit.edu>
\r
43 References: <8738pcjet4.fsf@awakening.csail.mit.edu>
\r
44 <1378921003-14639-1-git-send-email-jani@nikula.org>
\r
46 Content-Type: text/plain; charset=utf-8
\r
47 Content-Disposition: inline
\r
48 Content-Transfer-Encoding: 8bit
\r
49 In-Reply-To: <1378921003-14639-1-git-send-email-jani@nikula.org>
\r
50 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
51 X-Brightmail-Tracker:
\r
52 H4sIAAAAAAAAA+NgFlrIKsWRmVeSWpSXmKPExsUixG6notu0wyDIYMIEOYvW7s9MFk3TnS2u
\r
53 35zJ7MDscba7ndXj1v3X7B7PVt1iDmCO4rJJSc3JLEst0rdL4MpoO7GIuWAWf8WLh7tYGxhb
\r
54 eLsYOTkkBEwkJnf8Z4awxSQu3FvPBmILCexjlFhxNa+LkQvI3sgo8WXWCSaIxGkmiScb+SAS
\r
55 SxglLl9oYOli5OBgEVCVmLHaFKSGTUBDYtv+5YwgtoiAosTmk/vBbGYBD4n7c3rA5ggLxEnM
\r
56 PLCDFaSVV0BbYt70YIjxWRIN/7exgti8AoISJ2c+YYFoVZf4M+8SM0g5s4C0xPJ/HBBheYnm
\r
57 rbPBzucUcJC4sXop2HRRARWJKSe3sU1gFJ6FZNIsJJNmIUyahWTSAkaWVYyyKblVurmJmTnF
\r
58 qcm6xcmJeXmpRbqGermZJXqpKaWbGEExwSnJs4PxzUGlQ4wCHIxKPLwdswyChFgTy4orcw8x
\r
59 SnIwKYnyRm8HCvEl5adUZiQWZ8QXleakFh9ilOBgVhLhbZ8AlONNSaysSi3Kh0lJc7AoifOu
\r
60 c9IPEhJITyxJzU5NLUgtgsnKcHAoSfAmggwVLEpNT61Iy8wpQUgzcXCCDOcBGs4LUsNbXJCY
\r
61 W5yZDpE/xagoJc5bAJIQAElklObB9cJS1itGcaBXhHk7QKp4gOkOrvsV0GAmoMHfffVBBpck
\r
62 IqSkGhgdMoKkZt19McPfX13z0Z7FmnJJerV2fz3S/S4/F2HRPTtBd0fRK7nMHeWlTRN6Uo7I
\r
63 RcQ8XHV41tKYgHkf5m43uz3329FLz7ZtZvZXDvw18YfKrW2t9gb3ZzhYiB9knvj66J//V3dz
\r
64 r7rc0DH3QYqxysofjCfWpCrtW2vsxaS6ZomW/oIpvwXXK7EUZyQaajEXFScCAOgaHIw0AwAA
\r
65 Cc: notmuch@notmuchmail.org, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
\r
66 X-BeenThere: notmuch@notmuchmail.org
\r
67 X-Mailman-Version: 2.1.13
\r
69 List-Id: "Use and development of the notmuch mail system."
\r
70 <notmuch.notmuchmail.org>
\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
74 List-Post: <mailto:notmuch@notmuchmail.org>
\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
77 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
78 X-List-Received-Date: Wed, 11 Sep 2013 18:38:03 -0000
\r
82 Quoth Jani Nikula on Sep 11 at 8:36 pm:
\r
83 > Some common broken RFC 2047 encodings that we currently let gmime
\r
84 > parse strictly. We could tell gmime to be forgiving in what it accepts
\r
85 > as RFC 2047 encoding, making these tests pass.
\r
87 > test/encoding | 18 ++++++++++++++++++
\r
88 > 1 file changed, 18 insertions(+)
\r
90 > diff --git a/test/encoding b/test/encoding
\r
91 > index 2e1326e..7372b6b 100755
\r
92 > --- a/test/encoding
\r
93 > +++ b/test/encoding
\r
94 > @@ -29,4 +29,22 @@ add_message '[content-type]="text/plain; charset=iso-8859-2"' \
\r
95 > output=$(notmuch search tučňáččí 2>&1 | notmuch_show_sanitize)
\r
96 > test_expect_equal "$output" "thread:0000000000000002 2001-01-05 [1/1] Notmuch Test Suite; ISO-8859-2 encoded message (inbox unread)"
\r
98 > +test_begin_subtest "RFC 2047 encoded word with spaces"
\r
99 > +test_subtest_known_broken
\r
100 > +add_message '[subject]="=?utf-8?q?encoded word with spaces?="'
\r
101 > +output=$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)
\r
102 > +test_expect_equal "$output" "thread:0000000000000003 2001-01-05 [1/1] Notmuch Test Suite; encoded word with spaces (inbox unread)"
\r
104 > +test_begin_subtest "RFC 2047 encoded words back to back"
\r
105 > +test_subtest_known_broken
\r
106 > +add_message '[subject]="=?utf-8?q?encoded-words-back?==?utf-8?q?to-back?="'
\r
107 > +output=$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)
\r
108 > +test_expect_equal "$output" "thread:0000000000000004 2001-01-05 [1/1] Notmuch Test Suite; encoded-words-backto-back (inbox unread)"
\r
110 > +test_begin_subtest "RFC 2047 encoded words without space before or after"
\r
111 > +test_subtest_known_broken
\r
112 > +add_message '[subject]="=?utf-8?q?encoded?=word without=?utf-8?q?space?=" '
\r
113 > +output=$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)
\r
114 > +test_expect_equal "$output" "thread:0000000000000005 2001-01-05 [1/1] Notmuch Test Suite; encodedword withoutspace (inbox unread)"
\r