Re: [PATCH v4 04/16] Provide _notmuch_crypto_{set,get}_gpg_path
authorDavid Bremner <david@tethera.net>
Fri, 12 Aug 2016 08:04:20 +0000 (17:04 +0900)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:23 +0000 (16:22 -0700)
1c/be8b6271730bb5ee0af449919d2547e9e6398f [new file with mode: 0644]

diff --git a/1c/be8b6271730bb5ee0af449919d2547e9e6398f b/1c/be8b6271730bb5ee0af449919d2547e9e6398f
new file mode 100644 (file)
index 0000000..3133e6a
--- /dev/null
@@ -0,0 +1,70 @@
+Return-Path: <david@tethera.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 030AC6DE092F\r
+ for <notmuch@notmuchmail.org>; Fri, 12 Aug 2016 01:04:33 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.008\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.008 tagged_above=-999 required=5 tests=[AWL=0.003,\r
+  SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 hEoEe7Aqx_G0 for <notmuch@notmuchmail.org>;\r
+ Fri, 12 Aug 2016 01:04:25 -0700 (PDT)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 3459F6DE092E\r
+ for <notmuch@notmuchmail.org>; Fri, 12 Aug 2016 01:04:25 -0700 (PDT)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1bY7SH-0008BJ-Jc; Fri, 12 Aug 2016 04:04:37 -0400\r
+Received: (nullmailer pid 9546 invoked by uid 1000);\r
+ Fri, 12 Aug 2016 08:04:20 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,\r
+ Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH v4 04/16] Provide _notmuch_crypto_{set,get}_gpg_path\r
+In-Reply-To: <1467970047-8013-5-git-send-email-dkg@fifthhorseman.net>\r
+References: <1467970047-8013-1-git-send-email-dkg@fifthhorseman.net>\r
+ <1467970047-8013-5-git-send-email-dkg@fifthhorseman.net>\r
+User-Agent: Notmuch/0.22.1+61~g2ce0f13 (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 12 Aug 2016 17:04:20 +0900\r
+Message-ID: <87tweqpg57.fsf@maritornes.cs.unb.ca>\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: Fri, 12 Aug 2016 08:04:33 -0000\r
+\r
+Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:\r
+\r
+\r
+> +notmuch_status_t\r
+> +_notmuch_crypto_set_gpg_path (_notmuch_crypto_t *crypto, const char *gpg_path)\r
+> +{\r
+[snip]\r
+> +    if (! gpg_path && ! test_for_executable (gpg_path))\r
+> +    return NOTMUCH_STATUS_FILE_ERROR;\r
+\r
+this looks strange. Maybe the "!" in front of gpg_path might be\r
+spurious. Or maybe you mean || ?\r
+\r
+> -    const char *gpgpath;\r
+> +    char *gpg_path;\r
+>  } _notmuch_crypto_t;\r
+\r
+Why is const dropped here?\r
+>  \r