RE: Reply all - issue
[notmuch-archives.git] / 4a / 4b2322bcc08ea6cba8bb90995f8986e071d1c1
1 Return-Path: <bremner@tethera.net>\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 B5F89429E35\r
6         for <notmuch@notmuchmail.org>; Mon, 10 Oct 2011 06:49:50 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 8F4rFEutWMUn for <notmuch@notmuchmail.org>;\r
16         Mon, 10 Oct 2011 06:49:49 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 2AC26429E32\r
21         for <notmuch@notmuchmail.org>; Mon, 10 Oct 2011 06:49:47 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.64.58]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p9ADngZ8010802\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Mon, 10 Oct 2011 10:49:43 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1RDGEg-0006fl-Dt; Mon, 10 Oct 2011 10:49:42 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 1/6] test: update dump-restore to use redirection instead of\r
34         filename args\r
35 Date: Mon, 10 Oct 2011 10:49:16 -0300\r
36 Message-Id: <1318254561-25386-2-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.6.3\r
38 In-Reply-To: <1318254561-25386-1-git-send-email-david@tethera.net>\r
39 References: <8739f2qhla.fsf@zancas.localnet>\r
40         <1318254561-25386-1-git-send-email-david@tethera.net>\r
41 Cc: David Bremner <bremner@debian.org>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Mon, 10 Oct 2011 13:49:51 -0000\r
55 \r
56 From: David Bremner <bremner@debian.org>\r
57 \r
58 The idea here is that we want to deprecate the use of arguments to\r
59 dump and restore to specify paths, since in particular we want to use\r
60 the non-option arguments to dump to form a query.\r
61 ---\r
62  test/dump-restore |   10 +++++-----\r
63  1 files changed, 5 insertions(+), 5 deletions(-)\r
64 \r
65 diff --git a/test/dump-restore b/test/dump-restore\r
66 index a4de370..96c4f19 100755\r
67 --- a/test/dump-restore\r
68 +++ b/test/dump-restore\r
69 @@ -6,17 +6,17 @@ add_email_corpus\r
70  \r
71  test_expect_success "Dumping all tags" "generate_message &&\r
72  notmuch new &&\r
73 -notmuch dump dump.expected"\r
74 +notmuch dump > dump.expected"\r
75  \r
76  test_begin_subtest "Clearing all tags"\r
77  sed -e "s/(\([^(]*\))$/()/" < dump.expected > clear.expected\r
78 -notmuch restore clear.expected\r
79 -notmuch dump clear.actual\r
80 +notmuch restore < clear.expected\r
81 +notmuch dump > clear.actual\r
82  test_expect_equal "$(< clear.actual)" "$(< clear.expected)"\r
83  \r
84  test_begin_subtest "Restoring original tags"\r
85 -notmuch restore dump.expected\r
86 -notmuch dump dump.actual\r
87 +notmuch restore < dump.expected\r
88 +notmuch dump > dump.actual\r
89  test_expect_equal "$(< dump.actual)" "$(< dump.expected)"\r
90  \r
91  test_expect_success "Restore with nothing to do" "notmuch restore dump.expected"\r
92 -- \r
93 1.7.6.3\r
94 \r