Re: [PATCH 1/2] config: Add 'config list' command
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 26 Mar 2012 15:03:25 +0000 (08:03 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:45 +0000 (09:45 -0800)
b6/02fb0a05a97723e73ad1f9a3e392020b3a1089 [new file with mode: 0644]

diff --git a/b6/02fb0a05a97723e73ad1f9a3e392020b3a1089 b/b6/02fb0a05a97723e73ad1f9a3e392020b3a1089
new file mode 100644 (file)
index 0000000..b3dbc07
--- /dev/null
@@ -0,0 +1,119 @@
+Return-Path: <jrollins@finestructure.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 olra.theworths.org (Postfix) with ESMTP id 1E830431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 08:03:35 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id s9IoKOkUjMCx for <notmuch@notmuchmail.org>;\r
+       Mon, 26 Mar 2012 08:03:34 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7FCAD431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 08:03:34 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 1FA6E2E50D6A;\r
+       Mon, 26 Mar 2012 08:03:34 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (pool-108-27-62-184.nycmny.fios.verizon.net\r
+       [108.27.62.184]) (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id 3FE902E50D4B;\r
+       Mon, 26 Mar 2012 08:03:30 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 0A8D2573; Mon, 26 Mar 2012 08:03:29 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, Peter Wang <novalazy@gmail.com>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] config: Add 'config list' command\r
+In-Reply-To: <m2d385dcx8.fsf@guru.guru-group.fi>\r
+References: <1332282698-7951-1-git-send-email-novalazy@gmail.com>\r
+       <m2d385dcx8.fsf@guru.guru-group.fi>\r
+User-Agent: Notmuch/0.11.1+335~gf868783 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 26 Mar 2012 08:03:25 -0700\r
+Message-ID: <87iphrl802.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 26 Mar 2012 15:03:35 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Wed, 21 Mar 2012 20:30:43 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+> On Wed, 21 Mar 2012 09:31:37 +1100, Peter Wang <novalazy@gmail.com> wrote:\r
+> > Add a command to list all keys in a given configuration section.\r
+> >=20\r
+> > One use is as follows: a MUA may prefer to store data in a central\r
+> > notmuch configuration file so that the data is accessible across\r
+> > different machines, e.g. an addressbook.  The list command helps\r
+> > to implement features such as tab completion on the keys.\r
+>=20\r
+> Before getting deeper into implementation it is good to remember\r
+> that 'notmuch config' is loosely modeled after 'git config'.\r
+>=20\r
+> git config --list outputs somewhat different output.\r
+>=20\r
+> Maybe this command should be like 'notmuch config list-section-keys'\r
+\r
+Git's interface is completely inconsistent, so I see no reason to try to\r
+emulate it in every regard.  Let's just try to keep the notmuch\r
+interface as nice and consistent as possible.\r
+\r
+I do agree, though, that I think I would prefer to see the output in the\r
+same format as "git config --list".  So I would suggest the command and\r
+output be:\r
+\r
+$ notmuch config list\r
+database.path=3D/home/jrollins/.mail\r
+user.name=3DJameson Graef Rollins\r
+user.primary_email=3Djrollins@finestructure.net\r
+user.other_email=3D\r
+new.tags=3Dnew;unread\r
+maildir.synchronize_flags=3Dfalse\r
+search.exclude_tags=3Ddeleted;spam;\r
+\r
+That seem like a much more generally useful output.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPcIU+AAoJEO00zqvie6q8QYgP/3Jsvp6qsKVUvov9KfO9ADcR\r
+lPV7g/WDslJ4D/t8xBH5Vk25tXYPdYWUVfzkx9gmNVpNEMvJQ2vxRDXzNavzJvGH\r
+WX/N6qv0S30viUHp0R772MvzJSwnmtG4n6asEeReF4jJvufD5+P4s2e4RdnM/R95\r
+VmIhDbvvDbGZlGVVDxmspphovS1mnfQWL4B63NCir5yMJEx/1n6EqUqLC3xuyiot\r
+n2vvKeZvDuBwa8HJFosTTee3qIoOUi4k5XoEe8PL2lh6cFDLWlMXpEII4hzbbbPH\r
+br1QxIa5R2t0kvKFBA1rkWqwpcOmMmSfiTAtYghaAnQzHTX28AQz3xT0hUgCH/EQ\r
+qQ8yX8cY8EiZQ6lkbp/ua3FApI0fCiAiAVBX/+2OJh4CrCrrGV2vyhuRkC0wBXSu\r
+Q8nAk31Sx2ZDAVhqOPdpf3E9GvC+jBByY5qF7utSmacE0LJNH1Z4/aUKHaHVypWc\r
+ygcDvoptwCzYN841xC6NEY+pMfkR69c6yb1Yb2mqIrY/+YvlyB8lYjbJZpjEMI8E\r
+z+WXUo1wYF+7hp9infeGxw01oLVRVxnNV5u0OZw4j/6FfLDtKG4xmWb9z0HAhXQu\r
+8Zotg1Vz65zntVfgq7fZXIJ6bANzX9bKvu8J1kxmZB3qsdjy7iLY+oDhlRFPr53K\r
+7/tHrJXhiN3czozYE9Yb\r
+=8EXX\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r