Re: [PATCH] Add notmuch-remove-duplicates.py script to contrib.
[notmuch-archives.git] / 3d / 48d59b585867fbf6fbc9d8165061bd05b8d7e2
1 Return-Path: <jason@jasonjgw.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 9C8E04196F3\r
6         for <notmuch@notmuchmail.org>; Fri,  7 May 2010 20:35:53 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.191\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.191 tagged_above=-999 required=5\r
12         tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13         DKIM_VALID_AU=-0.1, RCVD_IN_RP_RNBL=1.31, RDNS_DYNAMIC=0.982]\r
14         autolearn=no\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 3lEN8fR-tYEV for <notmuch@notmuchmail.org>;\r
18         Fri,  7 May 2010 20:35:43 -0700 (PDT)\r
19 Received: from jdc.jasonjgw.net (ppp121-45-188-54.lns6.syd7.internode.on.net\r
20         [121.45.188.54])\r
21         by olra.theworths.org (Postfix) with ESMTP id 1B0EC431FC1\r
22         for <notmuch@notmuchmail.org>; Fri,  7 May 2010 20:35:43 -0700 (PDT)\r
23 Received: by jdc.jasonjgw.net (Postfix, from userid 1000)\r
24         id E01C018062113; Sat,  8 May 2010 13:35:39 +1000 (EST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jasonjgw.net; s=mail;\r
26         t=1273289739; bh=cayIYCjndTLoDnwiUXLWXnGr/640amLVzEz1hO5TG6A=;\r
27         h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type;\r
28         b=Ycd/A1FFN48HKJVy7ivIbqBtDRtkBNkzDEVVugtzZfWqN2L8kGN9JHYAxvlch/E//\r
29         7qZCU+dcktV2QFpLjtD5t1GqhgDnbEbSuUaZ6ZLdpSc5aWe7KOix/itGU8Ch48hCtp\r
30         OrHZz/sk9VdYrPuc0XMewvODOE4uztdoKDi+U2dk=\r
31 Date: Sat, 8 May 2010 13:35:39 +1000\r
32 From: Jason White <jason@jasonjgw.net>\r
33 To: notmuch <notmuch@notmuchmail.org>\r
34 Subject: Use of "notmuch count" in notmuch-hello.el\r
35 Message-ID: <20100508033539.GA28162@jdc.jasonjgw.net>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 Content-Disposition: inline\r
39 User-Agent: Mutt/1.5.20 (2009-06-14)\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Sat, 08 May 2010 03:35:53 -0000\r
53 \r
54 The ELisp code in the current Git master branch calls notmuch count, rather\r
55 than notmuch count *.\r
56 \r
57 I don't know whether this is supposed to be corrected in the C code or in the\r
58 Emacs code; the manual page still documents the old behaviour.\r
59 \r
60 Here's a quick patch that enables m-x notmuch to run for me.\r
61 \r
62 \r
63 >From 1cd04171eb6051adc9a37d25ccf9e09504e7a944 Mon Sep 17 00:00:00 2001\r
64 From: Jason White <jason@jasonjgw.net>\r
65 Date: Sat, 8 May 2010 13:30:59 +1000\r
66 Subject: [PATCH] Correct invocation of notmuch count.\r
67 \r
68 ---\r
69  emacs/notmuch-hello.el |    2 +-\r
70  1 files changed, 1 insertions(+), 1 deletions(-)\r
71 \r
72 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
73 index 6a1c56e..c0dcc31 100644\r
74 --- a/emacs/notmuch-hello.el\r
75 +++ b/emacs/notmuch-hello.el\r
76 @@ -272,7 +272,7 @@ diagonal."\r
77                      :notify (lambda (&rest ignore)\r
78                                (notmuch-hello-update))\r
79                      :help-echo "Refresh"\r
80 -                    (car (process-lines notmuch-command "count")))\r
81 +                    (car (process-lines notmuch-command "count" "*")))\r
82        (widget-insert " messages (that's not much mail).\n\n"))\r
83  \r
84      (let ((found-target-pos nil)\r
85 -- \r
86 1.7.1\r
87 \r