Binding access to ~/.notmuch-config (was: Crash with Python bindings)
authorW. Trevor King <wking@tremily.us>
Tue, 12 Jan 2016 19:13:50 +0000 (11:13 +1600)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:20:51 +0000 (16:20 -0700)
30/ef65e9fe61e2527aca7d60b41eb6de80d514ed [new file with mode: 0644]

diff --git a/30/ef65e9fe61e2527aca7d60b41eb6de80d514ed b/30/ef65e9fe61e2527aca7d60b41eb6de80d514ed
new file mode 100644 (file)
index 0000000..ce23438
--- /dev/null
@@ -0,0 +1,127 @@
+Return-Path: <wking@tremily.us>\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 6A1B76DE176B\r
+ for <notmuch@notmuchmail.org>; Tue, 12 Jan 2016 11:15:56 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.009\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.009 tagged_above=-999 required=5 tests=[AWL=0.110, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 uiSKYhzw2pKX for <notmuch@notmuchmail.org>;\r
+ Tue, 12 Jan 2016 11:15:54 -0800 (PST)\r
+Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net\r
+ [96.114.154.163])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id BEF756DE0FB1\r
+ for <notmuch@notmuchmail.org>; Tue, 12 Jan 2016 11:15:52 -0800 (PST)\r
+Received: from resomta-po-07v.sys.comcast.net ([96.114.154.231])\r
+ by resqmta-po-04v.sys.comcast.net with comcast\r
+ id 57FS1s0044zp9eg017Fswh; Tue, 12 Jan 2016 19:15:52 +0000\r
+Received: from mail.tremily.us ([73.221.72.168])\r
+ by resomta-po-07v.sys.comcast.net with comcast\r
+ id 57Dr1s0093dr3C9017DrD3; Tue, 12 Jan 2016 19:13:52 +0000\r
+Received: by mail.tremily.us (Postfix, from userid 1000)\r
+ id 08B4D1B46BB3; Tue, 12 Jan 2016 11:13:50 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
+ t=1452626031; bh=SrSTLBG2SZCHMCik+x5KOMRRhpwXCjhQ2tSWrDjHswI=;\r
+ h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
+ b=oQCsmadpS8TkW6jlyOwuzlAXpj0pcGJDNcZQ4EXiv/YS9vm76C0M3fEeY0ga+R8pb\r
+ 5RatoBfLS0qwv6hFLyzDUyX+xqvHKGGvyOO1PoGbc9E9cGPAyjq0vbR2gguNmLsg8A\r
+ 2SLAyIpO9qhZT28fOM/hZIqc8aHgFnFdHB/8kccI=\r
+Date: Tue, 12 Jan 2016 11:13:50 -0800\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: David Bremner <david@tethera.net>\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Binding access to ~/.notmuch-config (was: Crash with Python bindings)\r
+Message-ID: <20160112191350.GE372@odin.tremily.us>\r
+References: <5694CA65.8010400@fastmail.net> <87bn8r54dz.fsf@zancas.localnet>\r
+ <m160yyev4o.fsf@fastmail.net> <8737u26cpg.fsf@zancas.localnet>\r
+ <8760yy4o3w.fsf@tesseract.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+ protocol="application/pgp-signature"; boundary="2LWaEC9akcLlisSC"\r
+Content-Disposition: inline\r
+In-Reply-To: <8760yy4o3w.fsf@tesseract.cs.unb.ca>\r
+OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
+ url=http://tremily.us/pubkey.txt\r
+User-Agent: Mutt/1.5.23 (2014-03-12)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+ s=q20140121; t=1452626152;\r
+ bh=nGukQSQsKUId8wf6k531PBD5UaYNmwBJyw2SOIWDlbY=;\r
+ h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
+ MIME-Version:Content-Type;\r
+ b=ZD8r8ai1L87rvACvRfCigLy4mszpcMN0wcyU5HNuGPmhdcHGUtVVyic54Vm7Fcm2p\r
+ +a6n/GNDsUT+VhB8Ndvqi0yotbcbcF/UJStuEBjdD0YboEjQwGAXm3qCjLTIJYNTGm\r
+ r08TwmBYAk1t1ej4uMqowXv5Bad7csmvQkBbfA3+nUd/D/hsLUsqSyYJXJBA5QlETZ\r
+ 1AQoS8snPCzA9x0zuLYNFz/OvtgVmUZsGNZu/5BSG953UfXULlRdFjdoxHq+SNP60u\r
+ THlWspcSSgtiFDkpF22a4IiOrTWWYW6ye29IRScH9y5Yn9Jja4UoQuiOtzQ9/39RsD\r
+ cOONviJnaonJA==\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: Tue, 12 Jan 2016 19:15:56 -0000\r
+\r
+\r
+--2LWaEC9akcLlisSC\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, Jan 12, 2016 at 03:03:15PM -0400, David Bremner wrote:\r
+> Nothing to do with Konrad's crash, but I consider the fact that the\r
+> python bindings read ~/.notmuch-config to be a kind of layering\r
+> violation, since that file belongs to the CLI, while the bindings\r
+> are supposed to provide access to libnotmuch.\r
+\r
+I think of ~/.notmuch-config as being shared between all client code,\r
+and in that view it makes sense to have both the CLI and Python\r
+bindings (and other bindings) access it to figure out how to configure\r
+their library access calls.  Having a separate config file for each\r
+client to point at the default database path seems like more trouble\r
+than it's worth, as does adding a library function for =E2=80=9Creach into\r
+some local config and return the default database path=E2=80=9D.\r
+\r
+Cheers,\r
+Trevor\r
+\r
+--=20\r
+This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
+For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
+\r
+--2LWaEC9akcLlisSC\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQIcBAEBAgAGBQJWlVBtAAoJEAPqygegUbGsyYoP/0Bak9MknN/I6ZeusBKuwFmF\r
+d92q2aGtEuWyXETfhhtgoweGIj5w5FGJwgMFTEWkoFcft3ORRHI4DiM7nJAsbfQx\r
+g8f0Tqjr2UBN8qijZ1KemPdDY16tG7+4BASAkfSQFRlEUTPcea5+hMAU1q1RLOji\r
+9vnuyBzkvWdjAbx+3FGGEdfc2equ/o5PyA5WDZtvOHCQfWoItRwbYPfeh7Xd206Q\r
+JZosZqX/LwAMcNRXR3I1m2sYrYQ+Mz5f3H30koy32Ar2NEoagMJYMW5FRRn2DrCF\r
+IdS7UTgxjjnEiTgvb86E1ojq8xguGwsPXzkQow1aTlBmI2JB+ZYVlxTv/+W8DnWB\r
+Nbt4hQwRPG4dfvJ6W3h9UJDTWSa7+t07fUG0U/q0cNZ4vqVEc2t8iwXLPI/s9RrE\r
+re1iba1N3Fy/yNc9K4rLWvSLq9dbZA0dO2nfqu8+xj+jQrkpCGIGAYDM9cf/eop1\r
+4FG9gsfK7AxKqRBRisTPcwVSsF/GK77nv4c6mx3CTflmm4Y47F/O2lJjFx9yn81k\r
+Iey2EYqKpFgC660UDju0+YuYoErU0vgkfSyqBfZF3SIqi10VWPZeaMZ2BV1NEkw+\r
+OqTnPiCkUuYU8CQDvmn0dFacNGSrAyJm2VbH32iFyIUX5i9f/ZU2/FeLdWHKooi8\r
+Eb5JWae1eB0VHXJX3Zlb\r
+=awB4\r
+-----END PGP SIGNATURE-----\r
+\r
+--2LWaEC9akcLlisSC--\r