Re: [PATCH 1/2] config: Add 'config list' command
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 21 Mar 2012 18:30:43 +0000 (20:30 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:40 +0000 (09:45 -0800)
63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 [new file with mode: 0644]

diff --git a/63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 b/63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290
new file mode 100644 (file)
index 0000000..09aa65e
--- /dev/null
@@ -0,0 +1,69 @@
+Return-Path: <tomi.ollila@iki.fi>\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 A3980431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 21 Mar 2012 11:30:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 DZYEA4gMzqYz for <notmuch@notmuchmail.org>;\r
+       Wed, 21 Mar 2012 11:30:47 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+       by olra.theworths.org (Postfix) with ESMTP id E0927431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 21 Mar 2012 11:30:46 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id D8AFA68055; Wed, 21 Mar 2012 20:30:43 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Peter Wang <novalazy@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] config: Add 'config list' command\r
+In-Reply-To: <1332282698-7951-1-git-send-email-novalazy@gmail.com>\r
+References: <1332282698-7951-1-git-send-email-novalazy@gmail.com>\r
+User-Agent: Notmuch/0.11.1+288~g4b3af0e (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 21 Mar 2012 20:30:43 +0200\r
+Message-ID: <m2d385dcx8.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Wed, 21 Mar 2012 18:30:47 -0000\r
+\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
+> \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
+\r
+Before getting deeper into implementation it is good to remember\r
+that 'notmuch config' is loosely modeled after 'git config'.\r
+\r
+git config --list outputs somewhat different output.\r
+\r
+Maybe this command should be like 'notmuch config list-section-keys'\r
+\r
+> ---\r
+>  notmuch-config.c |   27 +++++++++++++++++++++++++++\r
+>  1 files changed, 27 insertions(+), 0 deletions(-)\r
+\r
+Tomi\r