Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / df / 11a8c2ad0620952d9d2f9e8b481ba3461278e3
1 Return-Path: <m.walters@qmul.ac.uk>\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 BD0E0431FAF\r
6         for <notmuch@notmuchmail.org>; Sat,  8 Dec 2012 09:54:33 -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: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 9-0HM-07Q0RY for <notmuch@notmuchmail.org>;\r
17         Sat,  8 Dec 2012 09:54:33 -0800 (PST)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 03C42431FAE\r
22         for <notmuch@notmuchmail.org>; Sat,  8 Dec 2012 09:54:32 -0800 (PST)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1ThOba-00038I-32; Sat, 08 Dec 2012 17:54:28 +0000\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1ThObZ-0006ra-PV; Sat, 08 Dec 2012 17:54:25 +0000\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: david@tethera.net, notmuch@notmuchmail.org\r
33 Subject: Re: [Patch v4 08/10] test/dump-restore: add test for warning/error\r
34         messages\r
35 In-Reply-To: <1354979276-20099-9-git-send-email-david@tethera.net>\r
36 References: <1354979276-20099-1-git-send-email-david@tethera.net>\r
37         <1354979276-20099-9-git-send-email-david@tethera.net>\r
38 User-Agent: Notmuch/0.14+155~g7edfdc3 (http://notmuchmail.org) Emacs/23.4.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Sat, 08 Dec 2012 17:54:30 +0000\r
41 Message-ID: <87r4n0a0q1.fsf@qmul.ac.uk>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain; charset=us-ascii\r
44 X-Sender-Host-Address: 93.97.24.31\r
45 X-QM-SPAM-Info: Sender has good ham record.  :)\r
46 X-QM-Body-MD5: 9d67292a84f15ad19fa6cab86099a571 (of first 20000 bytes)\r
47 X-SpamAssassin-Score: -1.8\r
48 X-SpamAssassin-SpamBar: -\r
49 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
50         determine if it is\r
51         spam. We require at least 5.0 points to mark a message as spam.\r
52         This message scored -1.8 points.\r
53         Summary of the scoring: \r
54         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
55         *      medium trust\r
56         *      [138.37.6.40 listed in list.dnswl.org]\r
57         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
58         provider *      (markwalters1009[at]gmail.com)\r
59         *  0.5 AWL AWL: From: address is in the auto white-list\r
60 X-QM-Scan-Virus: ClamAV says the message is clean\r
61 Cc: David Bremner <bremner@debian.org>\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Sat, 08 Dec 2012 17:54:33 -0000\r
75 \r
76 On Sat, 08 Dec 2012, david@tethera.net wrote:\r
77 > From: David Bremner <bremner@debian.org>\r
78 >\r
79 > We want to test both that error/warning messages are generated when\r
80 > they should be, and not generated when they should not be. This varies\r
81 > between restore and batch tagging.\r
82 > ---\r
83 >  test/dump-restore |   29 +++++++++++++++++++++++++++++\r
84 >  1 file changed, 29 insertions(+)\r
85 >\r
86 > diff --git a/test/dump-restore b/test/dump-restore\r
87 > index 7d91cca..b267792 100755\r
88 > --- a/test/dump-restore\r
89 > +++ b/test/dump-restore\r
90 > @@ -181,6 +181,35 @@ notmuch restore < EXPECTED.$test_count\r
91 >  notmuch dump --format=sup > OUTPUT.$test_count\r
92 >  test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
93 >  \r
94 > +test_begin_subtest 'restore: checking error messages'\r
95 > +notmuch restore <<EOF 2>OUTPUT\r
96 > ++a +b\r
97 > ++c +d --\r
98 > +# this is a harmless comment, do not yell about it.\r
99 > +\r
100 > +# the previous line was blank; also no yelling please\r
101 > ++%zz -- id:whatever\r
102 > ++e +f id:%yy\r
103 > +# the next line should report an an empty tag error for batch tagging, but restore\r
104 > ++ +e -- id:20091117232137.GA7669@griffis1.net\r
105 \r
106 I don't follow the comment above: do you mean "but not for restore", or\r
107 it should report an error but restore anyway or?\r
108 \r
109 Best wishes\r
110 \r
111 Mark\r
112 \r
113 > +# highlight the sketchy id parsing; this should be last\r
114 > ++g -- id:foo and bar\r
115 > +EOF\r
116 \r
117 \r
118 > +\r
119 > +cat <<EOF > EXPECTED\r
120 > +Warning: no query string: +a +b\r
121 > +Warning: Ignoring invalid input line +a +b\r
122 > +Warning: no query string: +c +d --\r
123 > +Warning: Ignoring invalid input line +c +d --\r
124 > +Warning: Hex decoding of tag %zz failed\r
125 > +Warning: Ignoring invalid input line +%zz -- id:whatever\r
126 > +Warning: Hex decoding of query id:%yy failed\r
127 > +Warning: Ignoring invalid input line +e +f id:%yy\r
128 > +Warning: Cannot apply tags to missing message: foo and bar\r
129 > +EOF\r
130 > +\r
131 > +test_expect_equal_file EXPECTED OUTPUT\r
132 > +\r
133 >  test_begin_subtest 'roundtripping random message-ids and tags'\r
134 >  \r
135 >      ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG} \\r
136 > -- \r
137 > 1.7.10.4\r
138 >\r
139 > _______________________________________________\r
140 > notmuch mailing list\r
141 > notmuch@notmuchmail.org\r
142 > http://notmuchmail.org/mailman/listinfo/notmuch\r