From 07db79c865dee1742220488d5019e11fda85b1c5 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 21 Mar 2012 20:30:43 +0200 Subject: [PATCH] Re: [PATCH 1/2] config: Add 'config list' command --- 63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 | 69 +++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 diff --git a/63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 b/63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 new file mode 100644 index 000000000..09aa65eb9 --- /dev/null +++ b/63/5bbdf11154caa8e06d720d5ca5d29cbb3cf290 @@ -0,0 +1,69 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id A3980431FAF + for ; Wed, 21 Mar 2012 11:30:47 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id DZYEA4gMzqYz for ; + Wed, 21 Mar 2012 11:30:47 -0700 (PDT) +Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66]) + by olra.theworths.org (Postfix) with ESMTP id E0927431FAE + for ; Wed, 21 Mar 2012 11:30:46 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id D8AFA68055; Wed, 21 Mar 2012 20:30:43 +0200 (EET) +From: Tomi Ollila +To: Peter Wang , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/2] config: Add 'config list' command +In-Reply-To: <1332282698-7951-1-git-send-email-novalazy@gmail.com> +References: <1332282698-7951-1-git-send-email-novalazy@gmail.com> +User-Agent: Notmuch/0.11.1+288~g4b3af0e (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 21 Mar 2012 18:30:47 -0000 + +On Wed, 21 Mar 2012 09:31:37 +1100, Peter Wang wrote: +> Add a command to list all keys in a given configuration section. +> +> One use is as follows: a MUA may prefer to store data in a central +> notmuch configuration file so that the data is accessible across +> different machines, e.g. an addressbook. The list command helps +> to implement features such as tab completion on the keys. + +Before getting deeper into implementation it is good to remember +that 'notmuch config' is loosely modeled after 'git config'. + +git config --list outputs somewhat different output. + +Maybe this command should be like 'notmuch config list-section-keys' + +> --- +> notmuch-config.c | 27 +++++++++++++++++++++++++++ +> 1 files changed, 27 insertions(+), 0 deletions(-) + +Tomi -- 2.26.2