Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / cb / c41fe18e5574eed308d2174a9bd344613b3246
1 Return-Path: <pieter@praet.org>\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 3DDFE431FAF\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:50:31 -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: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 hNpfyowkLytJ for <notmuch@notmuchmail.org>;\r
16         Sun, 19 Feb 2012 12:50:30 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id CA00B431FC9\r
21         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:50:26 -0800 (PST)\r
22 Received: by wibhi8 with SMTP id hi8so3110550wib.26\r
23         for <notmuch@notmuchmail.org>; Sun, 19 Feb 2012 12:50:25 -0800 (PST)\r
24 Received-SPF: pass (google.com: domain of pieter@praet.org designates\r
25         10.180.78.6 as permitted sender) client-ip=10.180.78.6; \r
26 Authentication-Results: mr.google.com;\r
27         spf=pass (google.com: domain of pieter@praet.org\r
28         designates 10.180.78.6 as permitted sender)\r
29         smtp.mail=pieter@praet.org\r
30 Received: from mr.google.com ([10.180.78.6])\r
31         by 10.180.78.6 with SMTP id x6mr13019112wiw.18.1329684625631 (num_hops\r
32         = 1); Sun, 19 Feb 2012 12:50:25 -0800 (PST)\r
33 MIME-Version: 1.0\r
34 Received: by 10.180.78.6 with SMTP id x6mr10905637wiw.18.1329684625571;\r
35         Sun, 19 Feb 2012 12:50:25 -0800 (PST)\r
36 Received: from localhost (104.218-242-81.adsl-dyn.isp.belgacom.be.\r
37         [81.242.218.104])\r
38         by mx.google.com with ESMTPS id by3sm11445932wib.3.2012.02.19.12.50.24\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Sun, 19 Feb 2012 12:50:25 -0800 (PST)\r
41 From: Pieter Praet <pieter@praet.org>\r
42 To: David Bremner <david@tethera.net>,\r
43         Tomi Ollila <tomi.ollila@iki.fi>\r
44 Subject: [PATCH 3/6] cli: add '--debug' option to 'notmuch new'\r
45 Date: Sun, 19 Feb 2012 21:47:53 +0100\r
46 Message-Id: <1329684476-9596-4-git-send-email-pieter@praet.org>\r
47 X-Mailer: git-send-email 1.7.8.1\r
48 In-Reply-To: <1329684476-9596-1-git-send-email-pieter@praet.org>\r
49 References: <8739a93beq.fsf@zancas.localnet>\r
50         <1329684476-9596-1-git-send-email-pieter@praet.org>\r
51 X-Gm-Message-State:\r
52  ALoCoQn6tIBonvqKcHsnVWzVq5yao468MV/va7Raplm8ODM66g/JOxp6s3owzkIs4Uk69SxBt/oC\r
53 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Sun, 19 Feb 2012 20:50:31 -0000\r
67 \r
68 This will be used in later patches to test the 'new.ignore'\r
69 config option more thoroughly.\r
70 ---\r
71  notmuch-new.c |    4 ++++\r
72  1 files changed, 4 insertions(+), 0 deletions(-)\r
73 \r
74 diff --git a/notmuch-new.c b/notmuch-new.c\r
75 index 4f13535..ca12003 100644\r
76 --- a/notmuch-new.c\r
77 +++ b/notmuch-new.c\r
78 @@ -37,6 +37,7 @@ typedef struct _filename_list {\r
79  typedef struct {\r
80      int output_is_a_tty;\r
81      int verbose;\r
82 +    int debug;\r
83      const char **new_tags;\r
84      size_t new_tags_length;\r
85      const char **new_ignore;\r
86 @@ -842,6 +843,7 @@ notmuch_new_command (void *ctx, int argc, char *argv[])\r
87      notmuch_bool_t run_hooks = TRUE;\r
88  \r
89      add_files_state.verbose = 0;\r
90 +    add_files_state.debug = 0;\r
91      add_files_state.output_is_a_tty = isatty (fileno (stdout));\r
92  \r
93      argc--; argv++; /* skip subcommand argument */\r
94 @@ -849,6 +851,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[])\r
95      for (i = 0; i < argc && argv[i][0] == '-'; i++) {\r
96         if (STRNCMP_LITERAL (argv[i], "--verbose") == 0) {\r
97             add_files_state.verbose = 1;\r
98 +       } else if (strcmp (argv[i], "--debug") == 0) {\r
99 +           add_files_state.debug = 1;\r
100         } else if (strcmp (argv[i], "--no-hooks") == 0) {\r
101             run_hooks = FALSE;\r
102         } else {\r
103 -- \r
104 1.7.8.1\r
105 \r