From e406533e012ea6ff05604f608366452a0c232b0c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 14 Jan 2016 09:23:18 +1600 Subject: [PATCH] Re: Binding access to ~/.notmuch-config --- 95/d8efe98f73dee64b019ebd44144958faaf2bb1 | 144 ++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 95/d8efe98f73dee64b019ebd44144958faaf2bb1 diff --git a/95/d8efe98f73dee64b019ebd44144958faaf2bb1 b/95/d8efe98f73dee64b019ebd44144958faaf2bb1 new file mode 100644 index 000000000..a3df9cd74 --- /dev/null +++ b/95/d8efe98f73dee64b019ebd44144958faaf2bb1 @@ -0,0 +1,144 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 90B596DE1607 + for ; Wed, 13 Jan 2016 09:25:27 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.009 +X-Spam-Level: +X-Spam-Status: No, score=0.009 tagged_above=-999 required=5 tests=[AWL=0.110, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 5qNv7MW3j7wB for ; + Wed, 13 Jan 2016 09:25:23 -0800 (PST) +Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net + [96.114.154.163]) + by arlo.cworth.org (Postfix) with ESMTPS id 411FE6DE091E + for ; Wed, 13 Jan 2016 09:25:22 -0800 (PST) +Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) + by resqmta-po-04v.sys.comcast.net with comcast + id 5VQW1s0045E3ZMc01VRL2B; Wed, 13 Jan 2016 17:25:20 +0000 +Received: from mail.tremily.us ([73.221.72.168]) + by resomta-po-18v.sys.comcast.net with comcast + id 5VPK1s00B3dr3C901VPKiR; Wed, 13 Jan 2016 17:23:20 +0000 +Received: by mail.tremily.us (Postfix, from userid 1000) + id 2DACF1B5220F; Wed, 13 Jan 2016 09:23:19 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; + t=1452705799; bh=PxyZAnNi9hOhQghnzW4+eQPKpW9zLZKR3+qm1DMRB0s=; + h=Date:From:To:Cc:Subject:References:In-Reply-To; + b=BGw8VttzChH6lk6OnsVYRUTBuNezAH8fDCFMtj7220NFH0AXPU1t3lbhVfRDQfT8C + 7riZUfON1g3YHr5zArEV0CNXQq7/lVK+B8STOMKNqFN8xavkKLcqWaPQaab7KrBvlB + VdIGz1K2sHlsJ9uLdFsJZBoyZEMF3VtC24nHakh4= +Date: Wed, 13 Jan 2016 09:23:18 -0800 +From: "W. Trevor King" +To: David Bremner +Cc: Konrad Hinsen , notmuch@notmuchmail.org +Subject: Re: Binding access to ~/.notmuch-config +Message-ID: <20160113172318.GO372@odin.tremily.us> +References: <5694CA65.8010400@fastmail.net> <87bn8r54dz.fsf@zancas.localnet> + <8737u26cpg.fsf@zancas.localnet> + <8760yy4o3w.fsf@tesseract.cs.unb.ca> + <20160112191350.GE372@odin.tremily.us> + <5696343B.2070907@fastmail.net> <87wprd4qft.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: multipart/signed; micalg=pgp-sha1; + protocol="application/pgp-signature"; boundary="20Vs8q+K0csnIr5j" +Content-Disposition: inline +In-Reply-To: <87wprd4qft.fsf@zancas.localnet> +OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; + url=http://tremily.us/pubkey.txt +User-Agent: Mutt/1.5.23 (2014-03-12) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20140121; t=1452705920; + bh=SPv49aLc1z14m3PFBpNFI1442ZyY7ho181Dng3oZLp4=; + h=Received:Received:Received:Date:From:To:Subject:Message-ID: + MIME-Version:Content-Type; + b=jjdRJ3NBe1ZnGa9grVv30Bt351w7DBHqGZPhw/UEYX/Z1x2Exv/CRZRRdGDeCRUcy + pu7VBtBGXxTXJ5zJ0O81lq8vkk1avtVsCPLSkFDKGnVbcvr+D97doBOJyS/IdAy9mx + fr7Co+qabP/ypKk8coh5yG5rRpiAvLlQ+t+50F4fjuobMZ+9BrTXXcD7DkBLcWZ7VS + 4IGIE5mMK8iR2ljxNxCxLCsNHivfNZIORbHdTL1/CGAi3YZyAzl0fkDjUz6a6GWar2 + OG6sVb2MMKlM9FXih6HrMLO8szCmvCOP0iF4CYV2SN13okWAKVZwbtbI19Oz7ISAC0 + fPmtG7O9UqlHw== +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 13 Jan 2016 17:25:27 -0000 + + +--20Vs8q+K0csnIr5j +Content-Type: text/plain; charset=utf-8 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +On Wed, Jan 13, 2016 at 08:25:10AM -0400, David Bremner wrote: +> Konrad Hinsen writes: +> > I agree. I see notmuch as a collection of CLI tools, some of which +> > are part of the distribution and others are written by myself for +> > my specific needs. I'd like them all to share a single +> > configuration file. In fact, I'd love to be able to add sections +> > specific to my Python scripts. +>=20 +> Yes, I understand that it's convenient, but the current set up is +> not really very robust=E2=80=A6 In particular upcoming changes may move +> some configuration items out of this file and into a library level +> configuration API. + +I think you mean [1]. And that's fine, since Python scripts, etc., +can use that API to set and access config settings, be they standard +or script-specific (as far as I can tell, I haven't reviewed that +series in detail). Docs on any standard settings would be nice, but I +guess they'd land as features moved out of ~/.notmuch-config and into +the database. The only setting that can't move into the database (as +you pointed out earlier [2]) is the path to the database. That's +currently all the Python bindings extract now, and making that route +the officially blessed way to find the default database path makes +sense to me. + +Cheers, +Trevor + +[1]: id:1452654610-22864-1-git-send-email-david@tethera.net + http://thread.gmane.org/gmane.mail.notmuch.general/21643 +[2]: id:8760yy4o3w.fsf@tesseract.cs.unb.ca + http://article.gmane.org/gmane.mail.notmuch.general/21639 + +--=20 +This email may be signed or encrypted with GnuPG (http://www.gnupg.org). +For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy + +--20Vs8q+K0csnIr5j +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: OpenPGP digital signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBAgAGBQJWlogDAAoJEAPqygegUbGsTgYP/3iNf46LtBpF4qX+y50CSS4d +NIX8cUsLNZe8F9zcASZ1vSiEibeZRAXBg+OxZoB1hvXQTL0zxpqeLXEKslT5BYet +x/BRU/aA2pUslyW+fwNHDBog57weKkRd8DAKuzFXoFn74zOvGkvhP58zqhrD6Gpy +57jvdgglN2p5DckUAzDZj5vYIYeEyECtgXkIeF6FgRrEgz/4FHOR9MCK4ybqTLw4 +pkrAoAxZTK7O4qL7fefzZ0zKf7hvwleCDa7SB9gEjjuYQY2hMQHApYwHwYxYZMGV +HiEtDvoa9EZ/xUB/tzGjoiE63Dmwvnd/67oRLfeqXtBT3marzwjubBitJhr4mFnp +P74RAOAogzxXYSQ3Zw2cWFRPBif/V+fINAU0lMHiCVrnDqGEFrZR/bmArNW7CjkS +nwQbtq/Cdikk1rt+PGVHMe0lGS7qdZf97Z/+btEmmtY2ZMSL40lEloeeZY72l9FJ +e39NS9sn3ewNVfaMPySaVfJD8xbqSb3YgcsKH3F2hqhI6/wh6x2a+m+EYSBS9/Ws +sFsX5U+7OhuxH//2cGhAluw28pBZbvk83iUNaTo6rFjo6qCMXnDz7grDfn+8Qv82 +gTr6xmQSfXKe22e+OmSUF8DZP9j25NPNigqkh07HD1wzoJqqFn+jbhZMg2RgrhIE +tTGHoSpuOl7jAqZP8hFu +=BY6Y +-----END PGP SIGNATURE----- + +--20Vs8q+K0csnIr5j-- -- 2.26.2