[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 07 / 3967a12436dac43f95bf65ab4a0e55725042a9
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 0EAB6429E52\r
6         for <notmuch@notmuchmail.org>; Mon, 10 Oct 2011 06:50:06 -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 wH7zoK3-v86Z for <notmuch@notmuchmail.org>;\r
16         Mon, 10 Oct 2011 06:50:04 -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 0A236429E54\r
21         for <notmuch@notmuchmail.org>; Mon, 10 Oct 2011 06:49:55 -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 p9ADnqo6010816\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Mon, 10 Oct 2011 10:49:53 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1RDGEq-0006fy-CL; Mon, 10 Oct 2011 10:49:52 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 6/6] notmuch-dump: deprecate use of output file argument.\r
34 Date: Mon, 10 Oct 2011 10:49:21 -0300\r
35 Message-Id: <1318254561-25386-7-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.6.3\r
37 In-Reply-To: <1318254561-25386-1-git-send-email-david@tethera.net>\r
38 References: <8739f2qhla.fsf@zancas.localnet>\r
39         <1318254561-25386-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 10 Oct 2011 13:50:06 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 We print an intentionally non-specific message on stderr, since it\r
58 isn't clear if there will be some global output file argument to\r
59 replace.\r
60 \r
61 We update the test suite atomically, since it relies on having the\r
62 same text in two files.\r
63 ---\r
64  notmuch-dump.c    |    1 +\r
65  test/dump-restore |    4 ++++\r
66  2 files changed, 5 insertions(+), 0 deletions(-)\r
67 \r
68 diff --git a/notmuch-dump.c b/notmuch-dump.c\r
69 index ac5d074..409c86a 100644\r
70 --- a/notmuch-dump.c\r
71 +++ b/notmuch-dump.c\r
72 @@ -42,6 +42,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])\r
73         return 1;\r
74  \r
75      if (argc && strcmp (argv[0], "--") != 0) {\r
76 +       fprintf (stderr, "Warning: the output file argument of dump is deprecated.\n");\r
77         output = fopen (argv[0], "w");\r
78         if (output == NULL) {\r
79             fprintf (stderr, "Error opening %s for writing: %s\n",\r
80 diff --git a/test/dump-restore b/test/dump-restore\r
81 index d8db259..5f3f0db 100755\r
82 --- a/test/dump-restore\r
83 +++ b/test/dump-restore\r
84 @@ -12,6 +12,10 @@ test_begin_subtest "dump outfile"\r
85  notmuch dump dump-outfile.actual\r
86  test_expect_equal_file dump.expected dump-outfile.actual\r
87  \r
88 +test_begin_subtest "dump outfile # deprecated"\r
89 +test_expect_equal "Warning: the output file argument of dump is deprecated."\\r
90 +  "$(notmuch dump /dev/null 2>&1)"\r
91 +\r
92  test_begin_subtest "dump outfile --"\r
93  notmuch dump dump-1-arg-dash.actual\r
94  test_expect_equal_file dump.expected dump-1-arg-dash.actual\r
95 -- \r
96 1.7.6.3\r
97 \r