Re: [PATCH v2 1/2] test: add known broken tests for known broken RFC 2047 encodings
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 11 Sep 2013 19:57:41 +0000 (22:57 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:05 +0000 (09:57 -0800)
d1/199cba9307cd16472e7fbb93ece73544b487c6 [new file with mode: 0644]

diff --git a/d1/199cba9307cd16472e7fbb93ece73544b487c6 b/d1/199cba9307cd16472e7fbb93ece73544b487c6
new file mode 100644 (file)
index 0000000..368bfae
--- /dev/null
@@ -0,0 +1,109 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3F98D431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 12:57:56 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 2ETcNUGNMeSN for <notmuch@notmuchmail.org>;\r
+       Wed, 11 Sep 2013 12:57:48 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5087C431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 12:57:48 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+       by guru.guru-group.fi (Postfix) with ESMTP id DB049100090;\r
+       Wed, 11 Sep 2013 22:57:41 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2 1/2] test: add known broken tests for known broken RFC\r
+       2047 encodings\r
+In-Reply-To: <1378921003-14639-1-git-send-email-jani@nikula.org>\r
+References: <8738pcjet4.fsf@awakening.csail.mit.edu>\r
+       <1378921003-14639-1-git-send-email-jani@nikula.org>\r
+User-Agent: Notmuch/0.16+76~ga4151ca (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 11 Sep 2013 22:57:41 +0300\r
+Message-ID: <m2r4cvyvuy.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 11 Sep 2013 19:57:56 -0000\r
+\r
+On Wed, Sep 11 2013, Jani Nikula <jani@nikula.org> wrote:\r
+\r
+> Some common broken RFC 2047 encodings that we currently let gmime\r
+> parse strictly. We could tell gmime to be forgiving in what it accepts\r
+> as RFC 2047 encoding, making these tests pass.\r
+> ---\r
+\r
+V2 LGTM.\r
+\r
+Tomi\r
+\r
+>  test/encoding | 18 ++++++++++++++++++\r
+>  1 file changed, 18 insertions(+)\r
+>\r
+> diff --git a/test/encoding b/test/encoding\r
+> index 2e1326e..7372b6b 100755\r
+> --- a/test/encoding\r
+> +++ b/test/encoding\r
+> @@ -29,4 +29,22 @@ add_message '[content-type]=3D"text/plain; charset=3Di=\r
+so-8859-2"' \\r
+>  output=3D$(notmuch search tu=C4=8D=C5=88=C3=A1=C4=8D=C4=8D=C3=AD 2>&1 | =\r
+notmuch_show_sanitize)\r
+>  test_expect_equal "$output" "thread:0000000000000002   2001-01-05 [1/1] =\r
+Notmuch Test Suite; ISO-8859-2 encoded message (inbox unread)"\r
+>=20=20\r
+> +test_begin_subtest "RFC 2047 encoded word with spaces"\r
+> +test_subtest_known_broken\r
+> +add_message '[subject]=3D"=3D?utf-8?q?encoded word with spaces?=3D"'\r
+> +output=3D$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
+> +test_expect_equal "$output" "thread:0000000000000003   2001-01-05 [1/1] =\r
+Notmuch Test Suite; encoded word with spaces (inbox unread)"\r
+> +\r
+> +test_begin_subtest "RFC 2047 encoded words back to back"\r
+> +test_subtest_known_broken\r
+> +add_message '[subject]=3D"=3D?utf-8?q?encoded-words-back?=3D=3D?utf-8?q?=\r
+to-back?=3D"'\r
+> +output=3D$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
+> +test_expect_equal "$output" "thread:0000000000000004   2001-01-05 [1/1] =\r
+Notmuch Test Suite; encoded-words-backto-back (inbox unread)"\r
+> +\r
+> +test_begin_subtest "RFC 2047 encoded words without space before or after"\r
+> +test_subtest_known_broken\r
+> +add_message '[subject]=3D"=3D?utf-8?q?encoded?=3Dword without=3D?utf-8?q=\r
+?space?=3D" '\r
+> +output=3D$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
+> +test_expect_equal "$output" "thread:0000000000000005   2001-01-05 [1/1] =\r
+Notmuch Test Suite; encodedword withoutspace (inbox unread)"\r
+> +\r
+>  test_done\r
+> --=20\r
+> 1.8.4.rc3\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r