Re: notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / db / f34c589ca19b74b08525470677af0ef912f09d
1 Return-Path: <david@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 arlo.cworth.org (Postfix) with ESMTP id C0EA26DE0231\r
6  for <notmuch@notmuchmail.org>; Wed, 10 Feb 2016 03:49:58 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.308\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.308 tagged_above=-999 required=5 tests=[AWL=0.243,\r
12   RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id hs622-KacY0x for <notmuch@notmuchmail.org>;\r
16  Wed, 10 Feb 2016 03:49:57 -0800 (PST)\r
17 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id E0B4C6DE021E\r
19  for <notmuch@notmuchmail.org>; Wed, 10 Feb 2016 03:49:56 -0800 (PST)\r
20 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
21  (envelope-from <david@tethera.net>)\r
22  id 1aTTGl-000853-4d; Wed, 10 Feb 2016 06:49:15 -0500\r
23 Received: (nullmailer pid 24917 invoked by uid 1000);\r
24  Wed, 10 Feb 2016 11:49:54 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,\r
27  Notmuch Mail <notmuch@notmuchmail.org>\r
28 Subject: Re: [PATCH v3 05/16] Use a blank _notmuch_crypto to choose the\r
29  default gpg_path\r
30 In-Reply-To: <1454272801-23623-6-git-send-email-dkg@fifthhorseman.net>\r
31 References: <1454272801-23623-1-git-send-email-dkg@fifthhorseman.net>\r
32  <1454272801-23623-6-git-send-email-dkg@fifthhorseman.net>\r
33 User-Agent: Notmuch/0.21+5~gca076ce (http://notmuchmail.org) Emacs/24.5.1\r
34  (x86_64-pc-linux-gnu)\r
35 Date: Wed, 10 Feb 2016 07:49:54 -0400\r
36 Message-ID: <87oabovl7h.fsf@maritornes.cs.unb.ca>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.20\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43  <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
45  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
50  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Wed, 10 Feb 2016 11:49:59 -0000\r
52 \r
53 Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:\r
54 \r
55 > This way we're only choosing a default in one place.\r
56 > ---\r
57 >  notmuch-config.c | 3 ++-\r
58 >  1 file changed, 2 insertions(+), 1 deletion(-)\r
59 >\r
60 > diff --git a/notmuch-config.c b/notmuch-config.c\r
61 > index d252bb2..7cd19a7 100644\r
62 > --- a/notmuch-config.c\r
63 > +++ b/notmuch-config.c\r
64 > @@ -418,7 +418,8 @@ notmuch_config_open (void *ctx,\r
65 >      }\r
66 >  \r
67 >      if (notmuch_config_get_crypto_gpg_path (config) == NULL) {\r
68 > -     notmuch_config_set_crypto_gpg_path (config, "gpg");\r
69 > +     _notmuch_crypto_t crypto = { .gpg_path = NULL };\r
70 > +     notmuch_config_set_crypto_gpg_path (config, _notmuch_crypto_get_gpg_path (&crypto));\r
71 >      }\r
72 \r
73 I'm not sure if it's worth it, but this particular usage would be\r
74 cleaner if _notmuch_crypto_get_path allowed a NULL argument.\r
75 \r
76 d\r