Re: Matching on any header line
[notmuch-archives.git] / 61 / f36d4cbb208936e4664358a7d692eb56741543
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 75437431FB6\r
6         for <notmuch@notmuchmail.org>; Sat,  5 Apr 2014 08:45:36 -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: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 HWaufJVQDblp for <notmuch@notmuchmail.org>;\r
16         Sat,  5 Apr 2014 08:45:32 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18         [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1682C431FC2\r
21         for <notmuch@notmuchmail.org>; Sat,  5 Apr 2014 08:45:32 -0700 (PDT)\r
22 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
23         4.72) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
24         id 1WWSlx-00082T-4f; Sat, 05 Apr 2014 15:44:45 +0000\r
25 Received: (nullmailer pid 10916 invoked by uid 1000); Sat, 05 Apr 2014\r
26         15:43:59 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [Patch v7 3/6] test: restore with missing final newline\r
30 Date: Sat,  5 Apr 2014 12:43:53 -0300\r
31 Message-Id: <1396712636-10640-4-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 1.9.0\r
33 In-Reply-To: <1396712636-10640-1-git-send-email-david@tethera.net>\r
34 References: <1396712636-10640-1-git-send-email-david@tethera.net>\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Sat, 05 Apr 2014 15:45:36 -0000\r
48 \r
49 Recent proposed patches for gzipped input had a bug with handling\r
50 missing newlines that was not caught by the current test suite\r
51 ---\r
52  test/T240-dump-restore.sh | 9 +++++++++\r
53  1 file changed, 9 insertions(+)\r
54 \r
55 diff --git a/test/T240-dump-restore.sh b/test/T240-dump-restore.sh\r
56 index d79aca8..b6d8602 100755\r
57 --- a/test/T240-dump-restore.sh\r
58 +++ b/test/T240-dump-restore.sh\r
59 @@ -110,6 +110,15 @@ notmuch dump --format=batch-tag from:cworth | sed 's/^.*-- id://' | \\r
60      sort > OUTPUT.$test_count\r
61  test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
62  \r
63 +test_begin_subtest "format=batch-tag, missing newline"\r
64 +printf "+a_tag_without_newline -- id:20091117232137.GA7669@griffis1.net" > IN\r
65 +notmuch restore --accumulate < IN\r
66 +notmuch dump id:20091117232137.GA7669@griffis1.net > OUT\r
67 +cat <<EOF > EXPECTED\r
68 ++a_tag_without_newline +inbox +unread -- id:20091117232137.GA7669@griffis1.net\r
69 +EOF\r
70 +test_expect_equal_file EXPECTED OUT\r
71 +\r
72  test_begin_subtest "format=batch-tag, # round-trip"\r
73  notmuch dump --format=sup | sort > EXPECTED.$test_count\r
74  notmuch dump --format=batch-tag | notmuch restore --format=batch-tag\r
75 -- \r
76 1.9.0\r
77 \r