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 1F8BD431FC2 for ; Sat, 17 Jan 2015 05:57:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 2.438 X-Spam-Level: ** X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 6XSzivOXMy8i for ; Sat, 17 Jan 2015 05:57:21 -0800 (PST) Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9D5C9431FAF for ; Sat, 17 Jan 2015 05:57:21 -0800 (PST) Received: from remotemail by yantan.tethera.net with local (Exim 4.80) (envelope-from ) id 1YCTsO-0007MH-AI; Sat, 17 Jan 2015 09:57:20 -0400 Received: (nullmailer pid 25910 invoked by uid 1000); Sat, 17 Jan 2015 13:57:15 -0000 From: David Bremner To: Michal Sojka , notmuch@notmuchmail.org Subject: [PATCH] emacs: convert notmuch-address-harvester to use notmuch-address Date: Sat, 17 Jan 2015 14:57:11 +0100 Message-Id: <1421503031-25797-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1411150602-21892-3-git-send-email-sojkam1@fel.cvut.cz> References: <1411150602-21892-3-git-send-email-sojkam1@fel.cvut.cz> 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: Sat, 17 Jan 2015 13:57:57 -0000 No attempt is made to optimize anything here, just drop in the new command. --- In a few subjective tests, this seems quite a bit faster than the version based on notmuch-show emacs/notmuch-address.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 9f6711b..de0b991 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -188,8 +188,8 @@ called when harvesting finishes." (query (if filter-query (format "(%s) and (%s)" from-me-query filter-query) from-me-query)) - (args `("show" "--format=sexp" "--format-version=2" - "--body=false" "--entire-thread=false" ,query))) + (args `("address" "--format=sexp" "--format-version=2" + ,query))) (if synchronous (notmuch-query-map-threads 'notmuch-address-harvest-msg (apply 'notmuch-call-notmuch-sexp args)) -- 2.1.4