From 48e7ed15120a4cfe33b73830996c4d1b5c3e5d35 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Mon, 19 Jan 2015 09:22:08 +0000 Subject: [PATCH] Re: [PATCH] emacs: convert notmuch-address-harvester to use notmuch-address --- f7/3f1c91c36ec692157109765d010a28c5e80de5 | 104 ++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 f7/3f1c91c36ec692157109765d010a28c5e80de5 diff --git a/f7/3f1c91c36ec692157109765d010a28c5e80de5 b/f7/3f1c91c36ec692157109765d010a28c5e80de5 new file mode 100644 index 000000000..ee25f62a2 --- /dev/null +++ b/f7/3f1c91c36ec692157109765d010a28c5e80de5 @@ -0,0 +1,104 @@ +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 A91C8431FB6 + for ; Mon, 19 Jan 2015 01:22:15 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.739 +X-Spam-Level: * +X-Spam-Status: No, score=1.739 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7, + UNPARSEABLE_RELAY=0.001] 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 G2iHsghA2RMW for ; + Mon, 19 Jan 2015 01:22:12 -0800 (PST) +Received: from mail-we0-f172.google.com (mail-we0-f172.google.com + [74.125.82.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 0CFB5431FAF + for ; Mon, 19 Jan 2015 01:22:12 -0800 (PST) +Received: by mail-we0-f172.google.com with SMTP id k11so30213583wes.3 + for ; Mon, 19 Jan 2015 01:22:11 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:cc:subject:in-reply-to:references:user-agent + :from:date:message-id:mime-version:content-type; + bh=JL5PYB9Iy7EZ6gMZLB1b7j6NYU7rmjAmwpqV7qKlH+w=; + b=XclqnMelEALsSKrsiVW0LVESlx/VhC8KWHtxDUgSip1KK43O2qLyJya4o9C7QMXwoW + /Hd3H68rFGOjq9npCFBkLYG7yQH48B/9QtzXWVN7bdR1CN+ZXcGMUrIhXb5U17uRMzeO + 78+don+0hiIfc1puyLv3yuQaj9Za7XZGnYqbkhJoGwyfw2Tv+EADCgVi8po3oNk+8J47 + VqtBg4JSOziOZIiRbEKd2v6XONzgw8bqQO5PWPtlWflD3TpOBAxk2JAgT+aToTJLgExX + vIdPxtvotLlUPtFqDWhbfzCOVVVTssBPAngQw/wPMJxEzC+ci42QOG4IuhTU5R7u7ACu + rrHg== +X-Gm-Message-State: + ALoCoQmkcudrDlT7LXa/SAqEk4S2irc0R8Nj/Y/NRr3IBMKYqed5CsIOnkwcmtW6Vungp8l+et5R +X-Received: by 10.194.75.195 with SMTP id e3mr1235479wjw.44.1421659330905; + Mon, 19 Jan 2015 01:22:10 -0800 (PST) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by mx.google.com with ESMTPSA id + gy8sm13385125wib.23.2015.01.19.01.22.09 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Mon, 19 Jan 2015 01:22:10 -0800 (PST) +Received: from localhost (30000@localhost [local]); + by localhost (OpenSMTPD) with ESMTPA id 1b054c16; + Mon, 19 Jan 2015 09:22:08 +0000 (UTC) +To: David Bremner , Michal Sojka , + notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: convert notmuch-address-harvester to use + notmuch-address +In-Reply-To: <1421503031-25797-1-git-send-email-david@tethera.net> +References: <1411150602-21892-3-git-send-email-sojkam1@fel.cvut.cz> + <1421503031-25797-1-git-send-email-david@tethera.net> +User-Agent: none +From: David Edmondson +Date: Mon, 19 Jan 2015 09:22:08 +0000 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +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: Mon, 19 Jan 2015 09:22:15 -0000 + +On Sat, Jan 17 2015, David Bremner wrote: +> 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 + +The changes look fine to me. + +> 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 -- 2.26.2