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 1E40E429E59
\r
6 for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 08:11:09 -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 tSZmEJRo4SJd for <notmuch@notmuchmail.org>;
\r
16 Sun, 18 Aug 2013 08:10:59 -0700 (PDT)
\r
17 Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com
\r
18 [209.85.214.49]) (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 6FD21431FDB
\r
21 for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 08:10:59 -0700 (PDT)
\r
22 Received: by mail-bk0-f49.google.com with SMTP id r7so1107526bkg.8
\r
23 for <notmuch@notmuchmail.org>; Sun, 18 Aug 2013 08:10:58 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=google.com; s=20120113;
\r
26 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references
\r
27 :user-agent:date:message-id:mime-version:content-type;
\r
28 bh=u/GYWwLsHZuczNJWDEDBBFVnAbo4umqzMppbGJGLOq8=;
\r
29 b=Z+nkxBTdf3EvcvOcouYFq1VVNnzBiuAI/ncDL/hVRBXFHwM+B+qAvNOaaYrNIvwuZA
\r
30 ATrX3p27GxL2S0UqtaqzD4+JGj5DARb/+WemVRrDNjt97lkKbORTuVH6DfV6NFyeay7x
\r
31 /hcVqYBJc0Kuh9fYPlkJD2codbY9tTzBVkX8WJlOTLzPkXWW6XaEpaI3XLtD2HP0pkkZ
\r
32 vVLBaopjRm3n+e1Hpxt1DHHv0PcfP1R/IfTjgBrTvBcnnMXnbw2tZrnAoo9HMKsKy8re
\r
33 qTVYA+/Bb0YS/mGuXvU+KGcnJTQY3FNwhCDgZMUoWV7nflACarvqqBWnW2uCXDH0vPI/
\r
36 ALoCoQnyIKis6vrTLuP8QMWlgXvBNl3GrxPQH/s/SL26u5pv0a1uYA6f3q5G3F8TV+5kHp7pBGAx
\r
37 X-Received: by 10.204.62.132 with SMTP id x4mr4751621bkh.22.1376838656768;
\r
38 Sun, 18 Aug 2013 08:10:56 -0700 (PDT)
\r
39 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.
\r
41 by mx.google.com with ESMTPSA id w9sm945237bkn.12.1969.12.31.16.00.00
\r
42 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
\r
43 Sun, 18 Aug 2013 08:10:55 -0700 (PDT)
\r
44 From: Jani Nikula <jani@nikula.org>
\r
45 To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org
\r
46 Subject: Re: [PATCH] test: Canonicalize RFC 2047 encoding and charset
\r
47 In-Reply-To: <1376833926-6024-1-git-send-email-amdragon@mit.edu>
\r
48 References: <1376833926-6024-1-git-send-email-amdragon@mit.edu>
\r
49 User-Agent: Notmuch/0.15.2+227~g40b2846 (http://notmuchmail.org) Emacs/24.3.1
\r
50 (x86_64-pc-linux-gnu)
\r
51 Date: Sun, 18 Aug 2013 18:10:56 +0300
\r
52 Message-ID: <8738q7f30f.fsf@nikula.org>
\r
54 Content-Type: text/plain
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Sun, 18 Aug 2013 15:11:09 -0000
\r
69 On Sun, 18 Aug 2013, Austin Clements <amdragon@MIT.EDU> wrote:
\r
70 > RFC 2047 states that the encoding and charset in an encoded word are
\r
71 > case-insensitive, so force them to lower case in the reply test. This
\r
72 > fixes an issue caused by GMime versions (somewhere between 2.6.10 and
\r
73 > 2.6.16), which changed the capitalization of the encoding.
\r
75 LGTM, and this fixes id:8738q8jzh3.fsf@nikula.org with GMime 2.6.16.
\r
82 > test/reply | 8 +++++---
\r
83 > 1 file changed, 5 insertions(+), 3 deletions(-)
\r
85 > diff --git a/test/reply b/test/reply
\r
86 > index d4389cf..a078927 100755
\r
89 > @@ -201,12 +201,14 @@ add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \
\r
90 > '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \
\r
91 > '[body]="Encoding"'
\r
93 > -output=$(notmuch reply id:${gen_msg_id})
\r
94 > -# Note that GMime changes from Q- to B-encoding
\r
95 > +# GMime happens to change from Q- to B-encoding. We canonicalize the
\r
96 > +# case of the encoding and charset because different versions of GMime
\r
97 > +# capitalize the encoding differently.
\r
98 > +output=$(notmuch reply id:${gen_msg_id} | sed 's/=?[^?]*?[bB]?/\L&/g')
\r
99 > test_expect_equal "$output" "\
\r
100 > From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
101 > Subject: Re: =?iso-8859-1?b?4N/n?=
\r
102 > -To: =?UTF-8?b?4piD?= <snowman@example.com>
\r
103 > +To: =?utf-8?b?4piD?= <snowman@example.com>
\r
104 > In-Reply-To: <${gen_msg_id}>
\r
105 > References: <${gen_msg_id}>
\r