1 Return-Path: <jrollins@finestructure.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 1E830431FBD
\r
6 for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 08:03:35 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id s9IoKOkUjMCx for <notmuch@notmuchmail.org>;
\r
16 Mon, 26 Mar 2012 08:03:34 -0700 (PDT)
\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id 7FCAD431FAE
\r
20 for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 08:03:34 -0700 (PDT)
\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
22 by fire-doxen-postvirus (Postfix) with ESMTP id 1FA6E2E50D6A;
\r
23 Mon, 26 Mar 2012 08:03:34 -0700 (PDT)
\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new
\r
25 Received: from finestructure.net (pool-108-27-62-184.nycmny.fios.verizon.net
\r
26 [108.27.62.184]) (Authenticated sender: jrollins)
\r
27 by fire-doxen-submit (Postfix) with ESMTP id 3FE902E50D4B;
\r
28 Mon, 26 Mar 2012 08:03:30 -0700 (PDT)
\r
29 Received: by finestructure.net (Postfix, from userid 1000)
\r
30 id 0A8D2573; Mon, 26 Mar 2012 08:03:29 -0700 (PDT)
\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
32 To: Tomi Ollila <tomi.ollila@iki.fi>, Peter Wang <novalazy@gmail.com>,
\r
33 notmuch@notmuchmail.org
\r
34 Subject: Re: [PATCH 1/2] config: Add 'config list' command
\r
35 In-Reply-To: <m2d385dcx8.fsf@guru.guru-group.fi>
\r
36 References: <1332282698-7951-1-git-send-email-novalazy@gmail.com>
\r
37 <m2d385dcx8.fsf@guru.guru-group.fi>
\r
38 User-Agent: Notmuch/0.11.1+335~gf868783 (http://notmuchmail.org) Emacs/23.3.1
\r
39 (x86_64-pc-linux-gnu)
\r
40 Date: Mon, 26 Mar 2012 08:03:25 -0700
\r
41 Message-ID: <87iphrl802.fsf@servo.finestructure.net>
\r
43 Content-Type: multipart/signed; boundary="=-=-=";
\r
44 micalg=pgp-sha256; protocol="application/pgp-signature"
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Mon, 26 Mar 2012 15:03:35 -0000
\r
60 Content-Transfer-Encoding: quoted-printable
\r
62 On Wed, 21 Mar 2012 20:30:43 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:
\r
63 > On Wed, 21 Mar 2012 09:31:37 +1100, Peter Wang <novalazy@gmail.com> wrote:
\r
64 > > Add a command to list all keys in a given configuration section.
\r
66 > > One use is as follows: a MUA may prefer to store data in a central
\r
67 > > notmuch configuration file so that the data is accessible across
\r
68 > > different machines, e.g. an addressbook. The list command helps
\r
69 > > to implement features such as tab completion on the keys.
\r
71 > Before getting deeper into implementation it is good to remember
\r
72 > that 'notmuch config' is loosely modeled after 'git config'.
\r
74 > git config --list outputs somewhat different output.
\r
76 > Maybe this command should be like 'notmuch config list-section-keys'
\r
78 Git's interface is completely inconsistent, so I see no reason to try to
\r
79 emulate it in every regard. Let's just try to keep the notmuch
\r
80 interface as nice and consistent as possible.
\r
82 I do agree, though, that I think I would prefer to see the output in the
\r
83 same format as "git config --list". So I would suggest the command and
\r
86 $ notmuch config list
\r
87 database.path=3D/home/jrollins/.mail
\r
88 user.name=3DJameson Graef Rollins
\r
89 user.primary_email=3Djrollins@finestructure.net
\r
91 new.tags=3Dnew;unread
\r
92 maildir.synchronize_flags=3Dfalse
\r
93 search.exclude_tags=3Ddeleted;spam;
\r
95 That seem like a much more generally useful output.
\r
100 Content-Type: application/pgp-signature
\r
102 -----BEGIN PGP SIGNATURE-----
\r
103 Version: GnuPG v1.4.11 (GNU/Linux)
\r
105 iQIcBAEBCAAGBQJPcIU+AAoJEO00zqvie6q8QYgP/3Jsvp6qsKVUvov9KfO9ADcR
\r
106 lPV7g/WDslJ4D/t8xBH5Vk25tXYPdYWUVfzkx9gmNVpNEMvJQ2vxRDXzNavzJvGH
\r
107 WX/N6qv0S30viUHp0R772MvzJSwnmtG4n6asEeReF4jJvufD5+P4s2e4RdnM/R95
\r
108 VmIhDbvvDbGZlGVVDxmspphovS1mnfQWL4B63NCir5yMJEx/1n6EqUqLC3xuyiot
\r
109 n2vvKeZvDuBwa8HJFosTTee3qIoOUi4k5XoEe8PL2lh6cFDLWlMXpEII4hzbbbPH
\r
110 br1QxIa5R2t0kvKFBA1rkWqwpcOmMmSfiTAtYghaAnQzHTX28AQz3xT0hUgCH/EQ
\r
111 qQ8yX8cY8EiZQ6lkbp/ua3FApI0fCiAiAVBX/+2OJh4CrCrrGV2vyhuRkC0wBXSu
\r
112 Q8nAk31Sx2ZDAVhqOPdpf3E9GvC+jBByY5qF7utSmacE0LJNH1Z4/aUKHaHVypWc
\r
113 ygcDvoptwCzYN841xC6NEY+pMfkR69c6yb1Yb2mqIrY/+YvlyB8lYjbJZpjEMI8E
\r
114 z+WXUo1wYF+7hp9infeGxw01oLVRVxnNV5u0OZw4j/6FfLDtKG4xmWb9z0HAhXQu
\r
115 8Zotg1Vz65zntVfgq7fZXIJ6bANzX9bKvu8J1kxmZB3qsdjy7iLY+oDhlRFPr53K
\r
116 7/tHrJXhiN3czozYE9Yb
\r
118 -----END PGP SIGNATURE-----
\r