1 Return-Path: <tomi.ollila@iki.fi>
\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 3F98D431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 12:57:56 -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 2ETcNUGNMeSN for <notmuch@notmuchmail.org>;
\r
16 Wed, 11 Sep 2013 12:57:48 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 5087C431FAF
\r
19 for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 12:57:48 -0700 (PDT)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id DB049100090;
\r
22 Wed, 11 Sep 2013 22:57:41 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org
\r
25 Subject: Re: [PATCH v2 1/2] test: add known broken tests for known broken RFC
\r
27 In-Reply-To: <1378921003-14639-1-git-send-email-jani@nikula.org>
\r
28 References: <8738pcjet4.fsf@awakening.csail.mit.edu>
\r
29 <1378921003-14639-1-git-send-email-jani@nikula.org>
\r
30 User-Agent: Notmuch/0.16+76~ga4151ca (http://notmuchmail.org) Emacs/24.3.1
\r
31 (x86_64-unknown-linux-gnu)
\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
33 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
34 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
35 Date: Wed, 11 Sep 2013 22:57:41 +0300
\r
36 Message-ID: <m2r4cvyvuy.fsf@guru.guru-group.fi>
\r
38 Content-Type: text/plain; charset=utf-8
\r
39 Content-Transfer-Encoding: quoted-printable
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Wed, 11 Sep 2013 19:57:56 -0000
\r
54 On Wed, Sep 11 2013, Jani Nikula <jani@nikula.org> wrote:
\r
56 > Some common broken RFC 2047 encodings that we currently let gmime
\r
57 > parse strictly. We could tell gmime to be forgiving in what it accepts
\r
58 > as RFC 2047 encoding, making these tests pass.
\r
65 > test/encoding | 18 ++++++++++++++++++
\r
66 > 1 file changed, 18 insertions(+)
\r
68 > diff --git a/test/encoding b/test/encoding
\r
69 > index 2e1326e..7372b6b 100755
\r
70 > --- a/test/encoding
\r
71 > +++ b/test/encoding
\r
72 > @@ -29,4 +29,22 @@ add_message '[content-type]=3D"text/plain; charset=3Di=
\r
74 > output=3D$(notmuch search tu=C4=8D=C5=88=C3=A1=C4=8D=C4=8D=C3=AD 2>&1 | =
\r
75 notmuch_show_sanitize)
\r
76 > test_expect_equal "$output" "thread:0000000000000002 2001-01-05 [1/1] =
\r
77 Notmuch Test Suite; ISO-8859-2 encoded message (inbox unread)"
\r
79 > +test_begin_subtest "RFC 2047 encoded word with spaces"
\r
80 > +test_subtest_known_broken
\r
81 > +add_message '[subject]=3D"=3D?utf-8?q?encoded word with spaces?=3D"'
\r
82 > +output=3D$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)
\r
83 > +test_expect_equal "$output" "thread:0000000000000003 2001-01-05 [1/1] =
\r
84 Notmuch Test Suite; encoded word with spaces (inbox unread)"
\r
86 > +test_begin_subtest "RFC 2047 encoded words back to back"
\r
87 > +test_subtest_known_broken
\r
88 > +add_message '[subject]=3D"=3D?utf-8?q?encoded-words-back?=3D=3D?utf-8?q?=
\r
90 > +output=3D$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)
\r
91 > +test_expect_equal "$output" "thread:0000000000000004 2001-01-05 [1/1] =
\r
92 Notmuch Test Suite; encoded-words-backto-back (inbox unread)"
\r
94 > +test_begin_subtest "RFC 2047 encoded words without space before or after"
\r
95 > +test_subtest_known_broken
\r
96 > +add_message '[subject]=3D"=3D?utf-8?q?encoded?=3Dword without=3D?utf-8?q=
\r
98 > +output=3D$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)
\r
99 > +test_expect_equal "$output" "thread:0000000000000005 2001-01-05 [1/1] =
\r
100 Notmuch Test Suite; encodedword withoutspace (inbox unread)"
\r
106 > _______________________________________________
\r
107 > notmuch mailing list
\r
108 > notmuch@notmuchmail.org
\r
109 > http://notmuchmail.org/mailman/listinfo/notmuch
\r