Re: [PATCH 7/9] add a gpg_path value for notmuch_database_t
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 12 Dec 2015 04:10:19 +0000 (23:10 +1900)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:11 +0000 (14:50 -0700)
a1/435687c088c073ab493009dc6bfe6f6ae8174f [new file with mode: 0644]

diff --git a/a1/435687c088c073ab493009dc6bfe6f6ae8174f b/a1/435687c088c073ab493009dc6bfe6f6ae8174f
new file mode 100644 (file)
index 0000000..7bfb9b3
--- /dev/null
@@ -0,0 +1,66 @@
+Return-Path: <dkg@fifthhorseman.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 4C8456DE0A9A\r
+ for <notmuch@notmuchmail.org>; Fri, 11 Dec 2015 20:10:25 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.014\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.014 tagged_above=-999 required=5\r
+ tests=[AWL=-0.014] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id VCAIMLToXUaC for <notmuch@notmuchmail.org>;\r
+ Fri, 11 Dec 2015 20:10:23 -0800 (PST)\r
+Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 633F06DE005F\r
+ for <notmuch@notmuchmail.org>; Fri, 11 Dec 2015 20:10:23 -0800 (PST)\r
+Received: from fifthhorseman.net (unknown [38.109.115.130])\r
+ by che.mayfirst.org (Postfix) with ESMTPSA id 8EA42F984;\r
+ Fri, 11 Dec 2015 23:10:19 -0500 (EST)\r
+Received: by fifthhorseman.net (Postfix, from userid 1000)\r
+ id 19AB920001; Fri, 11 Dec 2015 23:10:19 -0500 (EST)\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+To: "J. Lewis Muir" <jlmuir@imca-cat.org>,\r
+ Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH 7/9] add a gpg_path value for notmuch_database_t\r
+In-Reply-To: <566B4FCE.30802@imca-cat.org>\r
+References: <1449718786-28000-1-git-send-email-dkg@fifthhorseman.net>\r
+ <1449718786-28000-8-git-send-email-dkg@fifthhorseman.net>\r
+ <566B4FCE.30802@imca-cat.org>\r
+User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 11 Dec 2015 23:10:19 -0500\r
+Message-ID: <87h9jofgt0.fsf@alice.fifthhorseman.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 12 Dec 2015 04:10:25 -0000\r
+\r
+On Fri 2015-12-11 17:35:58 -0500, J. Lewis Muir wrote:\r
+> I guess I still don't get it.  Why even have a _find_in_path function?\r
+> Why not just expect the gpg executable path to have already been\r
+> specified somehow (e.g. Notmuch configuration file, build-time constant,\r
+> or environment variable)?\r
+\r
+This is happening in the library, which doesn't read the config file,\r
+and doesn't depend on the environment.  if a user tells the library "use\r
+this as your gpg executable", it seems nice to fail early for them.\r
+\r
+It's also nice if we want to have a default that says something like\r
+"use gpg2 if it's available, but gpg otherwise".\r
+\r
+     --dkg\r