Re: [notmuch] [PATCH -V3] notmuch.el: Support for customizing search result display
authorAneesh Kumar K. V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 11 Feb 2010 17:17:38 +0000 (22:47 +0530)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:10 +0000 (09:36 -0800)
1c/cc55796cd0da2a1b2461dade1649f8b6ba2ed2 [new file with mode: 0644]

diff --git a/1c/cc55796cd0da2a1b2461dade1649f8b6ba2ed2 b/1c/cc55796cd0da2a1b2461dade1649f8b6ba2ed2
new file mode 100644 (file)
index 0000000..e9142c0
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <aneesh.kumar@linux.vnet.ibm.com>\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 A1044431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 09:17:46 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -3.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-3.201 tagged_above=-999 required=5\r
+       tests=[AWL=-0.602, BAYES_00=-2.599] autolearn=unavailable\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 BoZy1uIDqsYH for <notmuch@notmuchmail.org>;\r
+       Thu, 11 Feb 2010 09:17:43 -0800 (PST)\r
+Received: from e28smtp06.in.ibm.com (e28smtp06.in.ibm.com [122.248.162.6])\r
+       by olra.theworths.org (Postfix) with ESMTP id 01FC9431FBC\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 09:17:42 -0800 (PST)\r
+Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60])\r
+       by e28smtp06.in.ibm.com (8.14.3/8.13.1) with ESMTP id o1BHHeVo016038\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 22:47:40 +0530\r
+Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63])\r
+       by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
+       o1BHHelm3059798\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 22:47:40 +0530\r
+Received: from d28av01.in.ibm.com (loopback [127.0.0.1])\r
+       by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
+       o1BHHdvp017369\r
+       for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 22:47:40 +0530\r
+Received: from skywalker.linux.vnet.ibm.com ([9.124.211.8])\r
+       by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
+       o1BHHcZx017348; Thu, 11 Feb 2010 22:47:39 +0530\r
+From: "Aneesh Kumar K. V" <aneesh.kumar@linux.vnet.ibm.com>\r
+To: cworth@cworth.org\r
+In-Reply-To:\r
+ <1265906506-10395-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>\r
+References: <87bpg3e9u9.fsf@yoom.home.cworth.org>\r
+       <1265906506-10395-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>\r
+Date: Thu, 11 Feb 2010 22:47:38 +0530\r
+Message-ID: <87mxzfvgi5.fsf@linux.vnet.ibm.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [notmuch] [PATCH -V3] notmuch.el: Support for customizing\r
+ search result display\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: Thu, 11 Feb 2010 17:17:46 -0000\r
+\r
+On Thu, 11 Feb 2010 22:11:46 +0530, "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:\r
+> From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>\r
+> \r
+> This patch helps in customizing search result display\r
+> similar to mutt's index_format. The customization is done\r
+> by defining an alist as below\r
+> \r
+> (setq notmuch-search-result-format '(("date" . "%s ")\r
+>                                   ("authors" . "%-40s ")\r
+>                                   ("subject" . "%s ")\r
+>                                   ("tags" . "(%s)")))\r
+> \r
+> The supported keywords are date, count, authors, subject and tags.\r
+> \r
+> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>\r
+> ---\r
+>  notmuch.el |   56 +++++++++++++++++++++++++++++++++++++++-----------------\r
+>  1 files changed, 39 insertions(+), 17 deletions(-)\r
+> \r
+> diff --git a/notmuch.el b/notmuch.el\r
+> index 040997e..a4a89ac 100644\r
+> --- a/notmuch.el\r
+> +++ b/notmuch.el\r
+> @@ -141,6 +141,19 @@ remaining lines into a button.")\r
+>  (defvar notmuch-show-body-read-visible nil)\r
+>  (defvar notmuch-show-citations-visible nil)\r
+>  (defvar notmuch-show-signatures-visible nil)\r
+> +(defcustom notmuch-search-result-format\r
+> +  '(("date" . "%s")\r
+> +    ("count" . "%-7s")\r
+> +    ("authors" . "%-40s")\r
+> +    ("subject" . "%s")\r
+> +    ("tags" . "%s"))\r
+\r
+I missed a '(' around tags. So the last line should be\r
+\r
+    ("tags" . "(%s)"))\r
+\r
+-aneesh\r