Applying patches directly from emails?
[notmuch-archives.git] / e7 / 9458d2ab3e830307230de3e34001507ad1ebef
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 B9EF0431FAF\r
6         for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 15:43:41 -0800 (PST)\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 m2ydW4kYDk8P for <notmuch@notmuchmail.org>;\r
16         Fri, 30 Nov 2012 15:43:37 -0800 (PST)\r
17 Received: from mail-la0-f53.google.com (mail-la0-f53.google.com\r
18         [209.85.215.53]) (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 A19FE431FAE\r
21         for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 15:43:37 -0800 (PST)\r
22 Received: by mail-la0-f53.google.com with SMTP id w12so857105lag.26\r
23         for <notmuch@notmuchmail.org>; Fri, 30 Nov 2012 15:43:34 -0800 (PST)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
27         :message-id:mime-version:content-type:x-gm-message-state;\r
28         bh=5cERExXbjUcxbnyNi4pu8xJuRJL15NVJsudW68nj2CM=;\r
29         b=AZV00dUpHXbp6dGtI8LnGgbno7G+aqa7PsxCfxt3sfn9+x4wA9V0jNG4xJJImAtruZ\r
30         hH/3OcOEAA70U49+kzpPlNNux6kYXR8TA25sJQpYv1FHKCqKCwq6XSnYwwwiTK+qzxDF\r
31         Qw43wTvcMbnwgiiGNh0NUxWuy5yVEJnLjc0tILyqKMTaN45qyKtfknpCRen4HMlvh43l\r
32         9534gKW/ALcWalEXtK+aYZzj9URRTk1W2eNY5I/C5JEo/uWo8RyO3E5hpzOI5XrRHPej\r
33         tU+dOOpx2maB5AqClIl5mz65FMbd7MORkm7YRo7EgGmOXaS2Y/2K90/bbT975bulDsFs\r
34         D32Q==\r
35 Received: by 10.112.29.229 with SMTP id n5mr1532817lbh.130.1354319014783;\r
36         Fri, 30 Nov 2012 15:43:34 -0800 (PST)\r
37 Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi.\r
38         [80.223.81.27])\r
39         by mx.google.com with ESMTPS id p9sm2592758lbc.3.2012.11.30.15.43.33\r
40         (version=SSLv3 cipher=OTHER); Fri, 30 Nov 2012 15:43:33 -0800 (PST)\r
41 From: Jani Nikula <jani@nikula.org>\r
42 To: david@tethera.net, notmuch@notmuchmail.org\r
43 Subject: Re: [Patch v2 06/17] test: add broken roundtrip test\r
44 In-Reply-To: <1353792017-31459-7-git-send-email-david@tethera.net>\r
45 References: <1353792017-31459-1-git-send-email-david@tethera.net>\r
46         <1353792017-31459-7-git-send-email-david@tethera.net>\r
47 User-Agent: Notmuch/0.14+124~g3b17402 (http://notmuchmail.org) Emacs/23.4.1\r
48         (i686-pc-linux-gnu)\r
49 Date: Sat, 01 Dec 2012 01:43:31 +0200\r
50 Message-ID: <87boeeac7w.fsf@nikula.org>\r
51 MIME-Version: 1.0\r
52 Content-Type: text/plain; charset=us-ascii\r
53 X-Gm-Message-State:\r
54  ALoCoQn5PSURj8bAjkbHXH8xkmyy8+CLHfZuA912te23w/z6ptjSuCtOacuySzLb3YWGmUkRHbb4\r
55 Cc: David Bremner <bremner@debian.org>\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Fri, 30 Nov 2012 23:43:41 -0000\r
69 \r
70 \r
71 BTW, patches up to and including this one could go in even if there's\r
72 still stuff to do in the following ones.\r
73 \r
74 Jani.\r
75 \r
76 \r
77 On Sat, 24 Nov 2012, david@tethera.net wrote:\r
78 > From: David Bremner <bremner@debian.org>\r
79 >\r
80 > We demonstrate the current notmuch restore parser being confused by\r
81 > message-id's and tags containing non alpha numeric characters\r
82 > (particularly space and parentheses are problematic because they are\r
83 > not escaped by notmuch dump).\r
84 >\r
85 > We save the files as hex escaped on disk so that the output from the\r
86 > failing test will not confuse the terminal emulator of people running\r
87 > the test.\r
88 > ---\r
89 >  test/dump-restore |    9 +++++++++\r
90 >  1 file changed, 9 insertions(+)\r
91 >\r
92 > diff --git a/test/dump-restore b/test/dump-restore\r
93 > index b05399c..a2204fb 100755\r
94 > --- a/test/dump-restore\r
95 > +++ b/test/dump-restore\r
96 > @@ -85,4 +85,13 @@ test_begin_subtest "dump --output=outfile -- from:cworth"\r
97 >  notmuch dump --output=dump-outfile-dash-inbox.actual -- from:cworth\r
98 >  test_expect_equal_file dump-cworth.expected dump-outfile-dash-inbox.actual\r
99 >  \r
100 > +test_expect_success 'roundtripping random message-ids and tags' \\r
101 > +    'test_subtest_known_broken &&\r
102 > +     ${TEST_DIRECTORY}/random-corpus --num-messages=10 --config-path=${NOTMUCH_CONFIG} &&\r
103 > +     notmuch dump | ${TEST_DIRECTORY}/hex-xcode --direction=encode > EXPECTED.$test_count &&\r
104 > +     notmuch tag -random-corpus tag:random-corpus &&\r
105 > +     ${TEST_DIRECTORY}/hex-xcode --direction=decode < EXPECTED.$test_count | notmuch restore 2>/dev/null &&\r
106 > +     notmuch dump | ${TEST_DIRECTORY}/hex-xcode --direction=encode > OUTPUT.$test_count &&\r
107 > +     test_cmp EXPECTED.$test_count OUTPUT.$test_count'\r
108 > +\r
109 >  test_done\r
110 > -- \r
111 > 1.7.10.4\r
112 >\r
113 > _______________________________________________\r
114 > notmuch mailing list\r
115 > notmuch@notmuchmail.org\r
116 > http://notmuchmail.org/mailman/listinfo/notmuch\r