1 Return-Path: <tomi.ollila@iki.fi>
\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 E0FFB6DE13EF
\r
6 for <notmuch@notmuchmail.org>; Fri, 11 Dec 2015 13:56:36 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.701 tagged_above=-999 required=5 tests=[AWL=0.049,
\r
12 SPF_NEUTRAL=0.652] 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 XTPuJ8wl0_OB for <notmuch@notmuchmail.org>;
\r
16 Fri, 11 Dec 2015 13:56:35 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by arlo.cworth.org (Postfix) with ESMTP id 320666DE005F
\r
19 for <notmuch@notmuchmail.org>; Fri, 11 Dec 2015 13:56:35 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id CBB5D1000FB;
\r
22 Fri, 11 Dec 2015 23:56:45 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
\r
25 Notmuch Mail <notmuch@notmuchmail.org>
\r
26 Subject: Re: [PATCH 6/9] search for a reasonable gpg implementation
\r
27 In-Reply-To: <1449718786-28000-7-git-send-email-dkg@fifthhorseman.net>
\r
28 References: <1449718786-28000-1-git-send-email-dkg@fifthhorseman.net>
\r
29 <1449718786-28000-7-git-send-email-dkg@fifthhorseman.net>
\r
30 User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1
\r
31 (x86_64-unknown-linux-gnu)
\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
33 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
34 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
35 Date: Fri, 11 Dec 2015 23:56:45 +0200
\r
36 Message-ID: <m24mfo7ioy.fsf@guru.guru-group.fi>
\r
38 Content-Type: text/plain
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.20
\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: Fri, 11 Dec 2015 21:56:37 -0000
\r
53 On Thu, Dec 10 2015, Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote:
\r
55 > When the notmuch database needs to find gpg, have it search reasonable
\r
58 > lib/database.cc | 13 ++++++++++++-
\r
59 > 1 file changed, 12 insertions(+), 1 deletion(-)
\r
61 > diff --git a/lib/database.cc b/lib/database.cc
\r
62 > index 62bc6d9..d0e8800 100644
\r
63 > --- a/lib/database.cc
\r
64 > +++ b/lib/database.cc
\r
65 > @@ -2393,6 +2393,17 @@ _notmuch_database_link_message (notmuch_database_t *notmuch,
\r
69 > +static const char*
\r
70 > +_notmuch_database_get_gpg_path (notmuch_database_t *notmuch)
\r
72 > +#define try_gpg_path(z) if (!access(z, X_OK)) return z
\r
73 > + try_gpg_path("/usr/bin/gpg2");
\r
74 > + try_gpg_path("/bin/gpg2");
\r
75 > + try_gpg_path("/usr/bin/gpg");
\r
76 > + try_gpg_path("/bin/gpg");
\r
80 If this were to survive longer, BSD folks would like to have /usr/local/bin checked...
\r
81 (i don't know (yet) about os x
\r