Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 82 / 96e48c22270b01b459c039d28665289aa09a36
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 04B4E431FAF\r
6         for <notmuch@notmuchmail.org>; Thu,  3 Apr 2014 19:43:18 -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 jOD5sn-PmlOo for <notmuch@notmuchmail.org>;\r
16         Thu,  3 Apr 2014 19:43:11 -0700 (PDT)\r
17 X-Greylist: delayed 2133 seconds by postgrey-1.32 at olra;\r
18         Thu, 03 Apr 2014 19:43:11 PDT\r
19 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
20         [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id 57360431FAE\r
23         for <notmuch@notmuchmail.org>; Thu,  3 Apr 2014 19:43:11 -0700 (PDT)\r
24 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
25         4.72) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
26         id 1WVtZi-00018f-IB; Fri, 04 Apr 2014 02:09:46 +0000\r
27 Received: (nullmailer pid 4016 invoked by uid 1000); Thu, 03 Apr 2014\r
28         19:41:39 -0000\r
29 From: David Bremner <david@tethera.net>\r
30 To: notmuch@notmuchmail.org\r
31 Subject: [Patch v6 3/6] test: restore with missing final newline\r
32 Date: Thu,  3 Apr 2014 16:41:20 -0300\r
33 Message-Id: <1396554083-3892-4-git-send-email-david@tethera.net>\r
34 X-Mailer: git-send-email 1.9.0\r
35 In-Reply-To: <1396554083-3892-1-git-send-email-david@tethera.net>\r
36 References: <1396554083-3892-1-git-send-email-david@tethera.net>\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Fri, 04 Apr 2014 02:43:18 -0000\r
50 \r
51 Recent proposed patches for gzipped input had a bug with handling\r
52 missing newlines that was not caught by the current test suite\r
53 ---\r
54  test/T240-dump-restore.sh | 9 +++++++++\r
55  1 file changed, 9 insertions(+)\r
56 \r
57 diff --git a/test/T240-dump-restore.sh b/test/T240-dump-restore.sh\r
58 index d79aca8..b6d8602 100755\r
59 --- a/test/T240-dump-restore.sh\r
60 +++ b/test/T240-dump-restore.sh\r
61 @@ -110,6 +110,15 @@ notmuch dump --format=batch-tag from:cworth | sed 's/^.*-- id://' | \\r
62      sort > OUTPUT.$test_count\r
63  test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count\r
64  \r
65 +test_begin_subtest "format=batch-tag, missing newline"\r
66 +printf "+a_tag_without_newline -- id:20091117232137.GA7669@griffis1.net" > IN\r
67 +notmuch restore --accumulate < IN\r
68 +notmuch dump id:20091117232137.GA7669@griffis1.net > OUT\r
69 +cat <<EOF > EXPECTED\r
70 ++a_tag_without_newline +inbox +unread -- id:20091117232137.GA7669@griffis1.net\r
71 +EOF\r
72 +test_expect_equal_file EXPECTED OUT\r
73 +\r
74  test_begin_subtest "format=batch-tag, # round-trip"\r
75  notmuch dump --format=sup | sort > EXPECTED.$test_count\r
76  notmuch dump --format=batch-tag | notmuch restore --format=batch-tag\r
77 -- \r
78 1.9.0\r
79 \r