[PATCH] remove debugging spew from T590
[notmuch-archives.git] / 4a / 8d60438b353a9cab850a6970e9d47b842e27bd
1 Return-Path: <jani@nikula.org>\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 223D5431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 10:36:54 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \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 f1kipYalFF3q for <notmuch@notmuchmail.org>;\r
16         Wed, 11 Sep 2013 10:36:46 -0700 (PDT)\r
17 Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com\r
18         [209.85.215.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 697B8431FAF\r
21         for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 10:36:46 -0700 (PDT)\r
22 Received: by mail-ea0-f176.google.com with SMTP id q16so4717672ead.7\r
23         for <notmuch@notmuchmail.org>; Wed, 11 Sep 2013 10:36:45 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=1e100.net; s=20130820;\r
26         h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
27         :references:mime-version:content-type:content-transfer-encoding;\r
28         bh=JqvkZtZE2GfUrgh+jAJ0NhTIxpKg1o/KS+9+4F8M7e4=;\r
29         b=cqCWsYNBtwf7mOzIGdNRpKYC0MnUaUuw9WdeEA/fn+qYp7af5t0I/nF58+CKJ6Zj88\r
30         st2zLuDEXhMp4YHf+8ISxAgqokXHSI2/zSAUsDhsh+/oqwHv5tcUAb6UXKkiVSFWyoa3\r
31         UBKuoKrv7nkE/Pkb2lQ6xcJtpm+j+aAq9k7MNiUEkK9TaCwpxhM2IMB/rLrGbbs3Zv8Y\r
32         lC0jtnFRMr48i9DvsvkzNXH5DJ1mIbYPKlMJsjkGrSYoywcePZXSv+QmxgrYgNoEE+BC\r
33         G9M7x8nEO/yQySfiiNpeYfDQebtO/jlWLP6WEmm463pPC6StL9c39jX6SLM1djsFPh4I\r
34         zm5w==\r
35 X-Gm-Message-State:\r
36  ALoCoQmGu1XfNXsLWbt5R3BwMDy90adxcyyuciouCbmJLG2ebw+WbfLNlmPOCIuC60bPxC8hlxtf\r
37 X-Received: by 10.14.213.68 with SMTP id z44mr3856661eeo.70.1378921005069;\r
38         Wed, 11 Sep 2013 10:36:45 -0700 (PDT)\r
39 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
40         [88.195.111.91])\r
41         by mx.google.com with ESMTPSA id a6sm42086629eei.10.1969.12.31.16.00.00\r
42         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
43         Wed, 11 Sep 2013 10:36:44 -0700 (PDT)\r
44 From: Jani Nikula <jani@nikula.org>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: [PATCH v2 1/2] test: add known broken tests for known broken RFC 2047\r
47         encodings\r
48 Date: Wed, 11 Sep 2013 20:36:42 +0300\r
49 Message-Id: <1378921003-14639-1-git-send-email-jani@nikula.org>\r
50 X-Mailer: git-send-email 1.8.4.rc3\r
51 In-Reply-To: <8738pcjet4.fsf@awakening.csail.mit.edu>\r
52 References: <8738pcjet4.fsf@awakening.csail.mit.edu>\r
53 MIME-Version: 1.0\r
54 Content-Type: text/plain; charset=UTF-8\r
55 Content-Transfer-Encoding: 8bit\r
56 Cc: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Wed, 11 Sep 2013 17:36:54 -0000\r
70 \r
71 Some common broken RFC 2047 encodings that we currently let gmime\r
72 parse strictly. We could tell gmime to be forgiving in what it accepts\r
73 as RFC 2047 encoding, making these tests pass.\r
74 ---\r
75  test/encoding | 18 ++++++++++++++++++\r
76  1 file changed, 18 insertions(+)\r
77 \r
78 diff --git a/test/encoding b/test/encoding\r
79 index 2e1326e..7372b6b 100755\r
80 --- a/test/encoding\r
81 +++ b/test/encoding\r
82 @@ -29,4 +29,22 @@ add_message '[content-type]="text/plain; charset=iso-8859-2"' \\r
83  output=$(notmuch search tučňáččí 2>&1 | notmuch_show_sanitize)\r
84  test_expect_equal "$output" "thread:0000000000000002   2001-01-05 [1/1] Notmuch Test Suite; ISO-8859-2 encoded message (inbox unread)"\r
85  \r
86 +test_begin_subtest "RFC 2047 encoded word with spaces"\r
87 +test_subtest_known_broken\r
88 +add_message '[subject]="=?utf-8?q?encoded word with spaces?="'\r
89 +output=$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
90 +test_expect_equal "$output" "thread:0000000000000003   2001-01-05 [1/1] Notmuch Test Suite; encoded word with spaces (inbox unread)"\r
91 +\r
92 +test_begin_subtest "RFC 2047 encoded words back to back"\r
93 +test_subtest_known_broken\r
94 +add_message '[subject]="=?utf-8?q?encoded-words-back?==?utf-8?q?to-back?="'\r
95 +output=$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
96 +test_expect_equal "$output" "thread:0000000000000004   2001-01-05 [1/1] Notmuch Test Suite; encoded-words-backto-back (inbox unread)"\r
97 +\r
98 +test_begin_subtest "RFC 2047 encoded words without space before or after"\r
99 +test_subtest_known_broken\r
100 +add_message '[subject]="=?utf-8?q?encoded?=word without=?utf-8?q?space?=" '\r
101 +output=$(notmuch search id:${gen_msg_id} 2>&1 | notmuch_show_sanitize)\r
102 +test_expect_equal "$output" "thread:0000000000000005   2001-01-05 [1/1] Notmuch Test Suite; encodedword withoutspace (inbox unread)"\r
103 +\r
104  test_done\r
105 -- \r
106 1.8.4.rc3\r
107 \r