Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 03 / d46df41e17f8dfdac3481d6c7ede15ae0becb4
1 Return-Path: <bremner@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 08ED9429E3A\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Dec 2011 22:42:14 -0800 (PST)\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 hTZ5wzLLYgSE for <notmuch@notmuchmail.org>;\r
16         Thu,  1 Dec 2011 22:42:13 -0800 (PST)\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 45BFD429E31\r
21         for <notmuch@notmuchmail.org>; Thu,  1 Dec 2011 22:42:13 -0800 (PST)\r
22 Received: from rocinante.cs.unb.ca (m3.kereda.com [207.194.238.3] (may be\r
23         forged)) (authenticated bits=0)\r
24         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pB26g5DS010489\r
25         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
26         Fri, 2 Dec 2011 02:42:07 -0400\r
27 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.76)\r
28         (envelope-from <bremner@tesseract.cs.unb.ca>)\r
29         id 1RWMou-00038n-RD; Thu, 01 Dec 2011 22:42:04 -0800\r
30 From: David Bremner <david@tethera.net>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: [RFC Patch v2 3/3] notmuch-dump: add --format option\r
33 Date: Thu,  1 Dec 2011 22:41:54 -0800\r
34 Message-Id: <1322808114-11854-3-git-send-email-david@tethera.net>\r
35 X-Mailer: git-send-email 1.7.5.4\r
36 In-Reply-To: <1322808114-11854-1-git-send-email-david@tethera.net>\r
37 References: <1322702130-26068-3-git-send-email-bremner@debian.org>\r
38         <1322808114-11854-1-git-send-email-david@tethera.net>\r
39 Cc: David Bremner <bremner@debian.org>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Fri, 02 Dec 2011 06:42:14 -0000\r
53 \r
54 From: David Bremner <bremner@debian.org>\r
55 \r
56 Note that the new option does not control anything at the moment.\r
57 ---\r
58  notmuch-dump.c |    4 ++++\r
59  1 files changed, 4 insertions(+), 0 deletions(-)\r
60 \r
61 diff --git a/notmuch-dump.c b/notmuch-dump.c\r
62 index 9e0c91d..d0ab360 100644\r
63 --- a/notmuch-dump.c\r
64 +++ b/notmuch-dump.c\r
65 @@ -42,10 +42,14 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])\r
66      if (notmuch == NULL)\r
67         return 1;\r
68  \r
69 +    int output_format = 's';\r
70      char *output_file_name = NULL;\r
71      int opt_index;\r
72  \r
73      notmuch_opt_desc_t options[] = {\r
74 +       { "format", 'f', NOTMUCH_OPT_KEYWORD,\r
75 +         (notmuch_keyword_t []){ { "sup", 's' }, { "path", 'p' }, {0, 0} },\r
76 +         &output_format },\r
77         { "out-file", 'o', NOTMUCH_OPT_POSITION, 0, &output_file_name },\r
78         { 0, 0, 0, 0, 0 }\r
79      };\r
80 -- \r
81 1.7.5.4\r
82 \r