Use of "notmuch count" in notmuch-hello.el
authorJason White <jason@jasonjgw.net>
Sat, 8 May 2010 03:35:39 +0000 (13:35 +1000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:02 +0000 (09:37 -0800)
3d/48d59b585867fbf6fbc9d8165061bd05b8d7e2 [new file with mode: 0644]

diff --git a/3d/48d59b585867fbf6fbc9d8165061bd05b8d7e2 b/3d/48d59b585867fbf6fbc9d8165061bd05b8d7e2
new file mode 100644 (file)
index 0000000..404d326
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <jason@jasonjgw.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 9C8E04196F3\r
+       for <notmuch@notmuchmail.org>; Fri,  7 May 2010 20:35:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.191\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.191 tagged_above=-999 required=5\r
+       tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+       DKIM_VALID_AU=-0.1, RCVD_IN_RP_RNBL=1.31, RDNS_DYNAMIC=0.982]\r
+       autolearn=no\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 3lEN8fR-tYEV for <notmuch@notmuchmail.org>;\r
+       Fri,  7 May 2010 20:35:43 -0700 (PDT)\r
+Received: from jdc.jasonjgw.net (ppp121-45-188-54.lns6.syd7.internode.on.net\r
+       [121.45.188.54])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1B0EC431FC1\r
+       for <notmuch@notmuchmail.org>; Fri,  7 May 2010 20:35:43 -0700 (PDT)\r
+Received: by jdc.jasonjgw.net (Postfix, from userid 1000)\r
+       id E01C018062113; Sat,  8 May 2010 13:35:39 +1000 (EST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jasonjgw.net; s=mail;\r
+       t=1273289739; bh=cayIYCjndTLoDnwiUXLWXnGr/640amLVzEz1hO5TG6A=;\r
+       h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type;\r
+       b=Ycd/A1FFN48HKJVy7ivIbqBtDRtkBNkzDEVVugtzZfWqN2L8kGN9JHYAxvlch/E//\r
+       7qZCU+dcktV2QFpLjtD5t1GqhgDnbEbSuUaZ6ZLdpSc5aWe7KOix/itGU8Ch48hCtp\r
+       OrHZz/sk9VdYrPuc0XMewvODOE4uztdoKDi+U2dk=\r
+Date: Sat, 8 May 2010 13:35:39 +1000\r
+From: Jason White <jason@jasonjgw.net>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Subject: Use of "notmuch count" in notmuch-hello.el\r
+Message-ID: <20100508033539.GA28162@jdc.jasonjgw.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\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: Sat, 08 May 2010 03:35:53 -0000\r
+\r
+The ELisp code in the current Git master branch calls notmuch count, rather\r
+than notmuch count *.\r
+\r
+I don't know whether this is supposed to be corrected in the C code or in the\r
+Emacs code; the manual page still documents the old behaviour.\r
+\r
+Here's a quick patch that enables m-x notmuch to run for me.\r
+\r
+\r
+>From 1cd04171eb6051adc9a37d25ccf9e09504e7a944 Mon Sep 17 00:00:00 2001\r
+From: Jason White <jason@jasonjgw.net>\r
+Date: Sat, 8 May 2010 13:30:59 +1000\r
+Subject: [PATCH] Correct invocation of notmuch count.\r
+\r
+---\r
+ emacs/notmuch-hello.el |    2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 6a1c56e..c0dcc31 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -272,7 +272,7 @@ diagonal."\r
+                    :notify (lambda (&rest ignore)\r
+                              (notmuch-hello-update))\r
+                    :help-echo "Refresh"\r
+-                   (car (process-lines notmuch-command "count")))\r
++                   (car (process-lines notmuch-command "count" "*")))\r
+       (widget-insert " messages (that's not much mail).\n\n"))\r
\r
+     (let ((found-target-pos nil)\r
+-- \r
+1.7.1\r
+\r