Re: [PATCH] emacs: convert notmuch-address-harvester to use notmuch-address
authorDavid Edmondson <dme@dme.org>
Mon, 19 Jan 2015 09:22:08 +0000 (09:22 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:47:37 +0000 (14:47 -0700)
f7/3f1c91c36ec692157109765d010a28c5e80de5 [new file with mode: 0644]

diff --git a/f7/3f1c91c36ec692157109765d010a28c5e80de5 b/f7/3f1c91c36ec692157109765d010a28c5e80de5
new file mode 100644 (file)
index 0000000..ee25f62
--- /dev/null
@@ -0,0 +1,104 @@
+Return-Path: <dme@dme.org>\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 A91C8431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Jan 2015 01:22:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.739\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.739 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7,\r
+       UNPARSEABLE_RELAY=0.001] autolearn=disabled\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 G2iHsghA2RMW for <notmuch@notmuchmail.org>;\r
+       Mon, 19 Jan 2015 01:22:12 -0800 (PST)\r
+Received: from mail-we0-f172.google.com (mail-we0-f172.google.com\r
+       [74.125.82.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0CFB5431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Jan 2015 01:22:12 -0800 (PST)\r
+Received: by mail-we0-f172.google.com with SMTP id k11so30213583wes.3\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Jan 2015 01:22:11 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:to:cc:subject:in-reply-to:references:user-agent\r
+       :from:date:message-id:mime-version:content-type;\r
+       bh=JL5PYB9Iy7EZ6gMZLB1b7j6NYU7rmjAmwpqV7qKlH+w=;\r
+       b=XclqnMelEALsSKrsiVW0LVESlx/VhC8KWHtxDUgSip1KK43O2qLyJya4o9C7QMXwoW\r
+       /Hd3H68rFGOjq9npCFBkLYG7yQH48B/9QtzXWVN7bdR1CN+ZXcGMUrIhXb5U17uRMzeO\r
+       78+don+0hiIfc1puyLv3yuQaj9Za7XZGnYqbkhJoGwyfw2Tv+EADCgVi8po3oNk+8J47\r
+       VqtBg4JSOziOZIiRbEKd2v6XONzgw8bqQO5PWPtlWflD3TpOBAxk2JAgT+aToTJLgExX\r
+       vIdPxtvotLlUPtFqDWhbfzCOVVVTssBPAngQw/wPMJxEzC+ci42QOG4IuhTU5R7u7ACu\r
+       rrHg==\r
+X-Gm-Message-State:\r
+ ALoCoQmkcudrDlT7LXa/SAqEk4S2irc0R8Nj/Y/NRr3IBMKYqed5CsIOnkwcmtW6Vungp8l+et5R\r
+X-Received: by 10.194.75.195 with SMTP id e3mr1235479wjw.44.1421659330905;\r
+       Mon, 19 Jan 2015 01:22:10 -0800 (PST)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id\r
+       gy8sm13385125wib.23.2015.01.19.01.22.09\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Mon, 19 Jan 2015 01:22:10 -0800 (PST)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 1b054c16;\r
+       Mon, 19 Jan 2015 09:22:08 +0000 (UTC)\r
+To: David Bremner <david@tethera.net>, Michal Sojka <sojkam1@fel.cvut.cz>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: convert notmuch-address-harvester to use\r
+       notmuch-address\r
+In-Reply-To: <1421503031-25797-1-git-send-email-david@tethera.net>\r
+References: <1411150602-21892-3-git-send-email-sojkam1@fel.cvut.cz>\r
+       <1421503031-25797-1-git-send-email-david@tethera.net>\r
+User-Agent: none\r
+From: David Edmondson <dme@dme.org>\r
+Date: Mon, 19 Jan 2015 09:22:08 +0000\r
+Message-ID: <cuna91fktvj.fsf@gargravarr.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Mon, 19 Jan 2015 09:22:15 -0000\r
+\r
+On Sat, Jan 17 2015, David Bremner wrote:\r
+> No attempt is made to optimize anything here, just drop in the\r
+> new command.\r
+> ---\r
+> In a few subjective tests, this seems quite a bit faster than\r
+> the version based on notmuch-show\r
+\r
+The changes look fine to me.\r
+\r
+> emacs/notmuch-address.el | 4 ++--\r
+>  1 file changed, 2 insertions(+), 2 deletions(-)\r
+>\r
+> diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el\r
+> index 9f6711b..de0b991 100644\r
+> --- a/emacs/notmuch-address.el\r
+> +++ b/emacs/notmuch-address.el\r
+> @@ -188,8 +188,8 @@ called when harvesting finishes."\r
+>       (query (if filter-query\r
+>                  (format "(%s) and (%s)" from-me-query filter-query)\r
+>                from-me-query))\r
+> -     (args `("show" "--format=sexp" "--format-version=2"\r
+> -             "--body=false" "--entire-thread=false" ,query)))\r
+> +     (args `("address" "--format=sexp" "--format-version=2"\r
+> +             ,query)))\r
+>      (if synchronous\r
+>      (notmuch-query-map-threads 'notmuch-address-harvest-msg\r
+>                                 (apply 'notmuch-call-notmuch-sexp args))\r
+> -- \r
+> 2.1.4\r