1 Return-Path: <bremner@tesseract.cs.unb.ca>
\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 1F8BD431FC2
\r
6 for <notmuch@notmuchmail.org>; Sat, 17 Jan 2015 05:57:57 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 6XSzivOXMy8i for <notmuch@notmuchmail.org>;
\r
16 Sat, 17 Jan 2015 05:57:21 -0800 (PST)
\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])
\r
18 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 9D5C9431FAF
\r
21 for <notmuch@notmuchmail.org>; Sat, 17 Jan 2015 05:57:21 -0800 (PST)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <bremner@tesseract.cs.unb.ca>)
\r
24 id 1YCTsO-0007MH-AI; Sat, 17 Jan 2015 09:57:20 -0400
\r
25 Received: (nullmailer pid 25910 invoked by uid 1000); Sat, 17 Jan 2015
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org
\r
29 Subject: [PATCH] emacs: convert notmuch-address-harvester to use
\r
31 Date: Sat, 17 Jan 2015 14:57:11 +0100
\r
32 Message-Id: <1421503031-25797-1-git-send-email-david@tethera.net>
\r
33 X-Mailer: git-send-email 2.1.4
\r
34 In-Reply-To: <1411150602-21892-3-git-send-email-sojkam1@fel.cvut.cz>
\r
35 References: <1411150602-21892-3-git-send-email-sojkam1@fel.cvut.cz>
\r
36 X-BeenThere: notmuch@notmuchmail.org
\r
37 X-Mailman-Version: 2.1.13
\r
39 List-Id: "Use and development of the notmuch mail system."
\r
40 <notmuch.notmuchmail.org>
\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
44 List-Post: <mailto:notmuch@notmuchmail.org>
\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
48 X-List-Received-Date: Sat, 17 Jan 2015 13:57:57 -0000
\r
50 No attempt is made to optimize anything here, just drop in the
\r
53 In a few subjective tests, this seems quite a bit faster than
\r
54 the version based on notmuch-show
\r
56 emacs/notmuch-address.el | 4 ++--
\r
57 1 file changed, 2 insertions(+), 2 deletions(-)
\r
59 diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el
\r
60 index 9f6711b..de0b991 100644
\r
61 --- a/emacs/notmuch-address.el
\r
62 +++ b/emacs/notmuch-address.el
\r
63 @@ -188,8 +188,8 @@ called when harvesting finishes."
\r
64 (query (if filter-query
\r
65 (format "(%s) and (%s)" from-me-query filter-query)
\r
67 - (args `("show" "--format=sexp" "--format-version=2"
\r
68 - "--body=false" "--entire-thread=false" ,query)))
\r
69 + (args `("address" "--format=sexp" "--format-version=2"
\r
72 (notmuch-query-map-threads 'notmuch-address-harvest-msg
\r
73 (apply 'notmuch-call-notmuch-sexp args))
\r