Re: Batch tagging - add id_list as tag possible?
[notmuch-archives.git] / 19 / 49e4dde96679dd540fb4e1c70c1fed4e00b4cf
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 397F7431FAF\r
6         for <notmuch@notmuchmail.org>; Wed,  8 Aug 2012 01:07:08 -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: -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 Jv4N2b53+Gx2 for <notmuch@notmuchmail.org>;\r
17         Wed,  8 Aug 2012 01:07:07 -0700 (PDT)\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 73E0C431FAE\r
22         for <notmuch@notmuchmail.org>; Wed,  8 Aug 2012 01:07:07 -0700 (PDT)\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 1Sz1IH-0001QF-J3; Wed, 08 Aug 2012 09:07:05 +0100\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
28         helo=localhost)\r
29         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
30         (envelope-from <m.walters@qmul.ac.uk>)\r
31         id 1Sz1IH-0002cu-8O; Wed, 08 Aug 2012 09:07:05 +0100\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: david@tethera.net, notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH 3/3] test: add broken roundtrip test\r
35 In-Reply-To: <1344190393-22497-4-git-send-email-david@tethera.net>\r
36 References: <1344190393-22497-1-git-send-email-david@tethera.net>\r
37         <1344190393-22497-4-git-send-email-david@tethera.net>\r
38 User-Agent: Notmuch/0.13.2+96~g634443c (http://notmuchmail.org) Emacs/23.4.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Wed, 08 Aug 2012 09:06:59 +0100\r
41 Message-ID: <87zk6524f0.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: 94.192.233.223\r
45 X-QM-SPAM-Info: Sender has good ham record.  :)\r
46 X-QM-Body-MD5: df5f8e9a13ad07f3a4897cb6e7162134 (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.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
60         *      domain\r
61         *  0.5 AWL AWL: From: address is in the auto white-list\r
62 X-QM-Scan-Virus: ClamAV says the message is clean\r
63 Cc: David Bremner <bremner@debian.org>\r
64 X-BeenThere: notmuch@notmuchmail.org\r
65 X-Mailman-Version: 2.1.13\r
66 Precedence: list\r
67 List-Id: "Use and development of the notmuch mail system."\r
68         <notmuch.notmuchmail.org>\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
72 List-Post: <mailto:notmuch@notmuchmail.org>\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
75         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
76 X-List-Received-Date: Wed, 08 Aug 2012 08:07:08 -0000\r
77 \r
78 On Sun, 05 Aug 2012, david@tethera.net wrote:\r
79 > From: David Bremner <bremner@debian.org>\r
80 >\r
81 > The output of test_cmp is redirected because it is pretty horrible,\r
82 > and tends to mess up terminals. When the test is no longer marked as\r
83 > broken, this redirection should be removed.\r
84 \r
85 How about piping the output to hexdump or even cat -v or something?\r
86 \r
87 > ---\r
88 >  test/dump-restore |    9 +++++++++\r
89 >  1 file changed, 9 insertions(+)\r
90 >\r
91 > diff --git a/test/dump-restore b/test/dump-restore\r
92 > index 439e998..7979ebf 100755\r
93 > --- a/test/dump-restore\r
94 > +++ b/test/dump-restore\r
95 > @@ -82,4 +82,13 @@ test_begin_subtest "dump outfile -- from:cworth"\r
96 >  notmuch dump dump-outfile-dash-inbox.actual -- from:cworth\r
97 >  test_expect_equal_file dump-cworth.expected dump-outfile-dash-inbox.actual\r
98 >  \r
99 > +test_expect_success 'roundtripping random message-ids and tags' \\r
100 > +    'test_subtest_known_broken &&\r
101 > +    ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG} &&\r
102 > +    notmuch dump > EXPECTED.$test_count &&\r
103 > +    notmuch tag -random-corpus tag:random-corpus &&\r
104 > +    notmuch restore < EXPECTED.$test_count 2>/dev/null &&\r
105 > +    notmuch dump > OUTPUT.$test_count &&\r
106 > +    test_cmp EXPECTED.$test_count OUTPUT.$test_count 1>/dev/null'\r
107 \r
108 Are the single quotes at the start and end of the main block meant to be\r
109 there? And with them deleted this seems to pass (but there is lots of\r
110 diff if the redirection is removed).  I am not familiar with\r
111 test_expect_success/test_cmp so don't know what to expect.\r
112 \r
113 Best wishes \r
114 \r
115 Mark\r
116 \r
117 > +\r
118 >  test_done\r
119 > -- \r
120 > 1.7.10.4\r
121 >\r
122 > _______________________________________________\r
123 > notmuch mailing list\r
124 > notmuch@notmuchmail.org\r
125 > http://notmuchmail.org/mailman/listinfo/notmuch\r