From: Tomi Ollila Date: Thu, 19 May 2016 14:45:07 +0000 (+0300) Subject: Re: [PATCH] emacs: address completion, allow sender/recipient and filters X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f3f8915aeb442949d689d29e2608107e7627b69;p=notmuch-archives.git Re: [PATCH] emacs: address completion, allow sender/recipient and filters --- diff --git a/05/91a6fa388758818287fc481d6245b60ff49783 b/05/91a6fa388758818287fc481d6245b60ff49783 new file mode 100644 index 000000000..bb8028e81 --- /dev/null +++ b/05/91a6fa388758818287fc481d6245b60ff49783 @@ -0,0 +1,89 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 5A07A6DE01F9 + for ; Thu, 19 May 2016 07:45:34 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.59 +X-Spam-Level: +X-Spam-Status: No, score=0.59 tagged_above=-999 required=5 tests=[AWL=-0.062, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id JNeVRksPlT7u for ; + Thu, 19 May 2016 07:45:26 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id CFF1E6DE00F5 + for ; Thu, 19 May 2016 07:45:24 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id F09401000B3 + for ; Thu, 19 May 2016 17:45:07 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: address completion, + allow sender/recipient and filters +In-Reply-To: <87r3czo8g9.fsf@steelpick.2x.cz> +References: <8737pg99zz.fsf@steelpick.2x.cz> + <1463558813-23603-1-git-send-email-markwalters1009@gmail.com> + <87r3czo8g9.fsf@steelpick.2x.cz> +User-Agent: Notmuch/0.22+26~g2adc7d1 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Thu, 19 May 2016 14:45:34 -0000 + +On Wed, May 18 2016, Michal Sojka wrote: + +> On Wed, May 18 2016, Mark Walters wrote: +>> This commit lets the user customize the address completion. It makes +>> two changes. +> +> Thanks Mark, now it LGTM. +> +> I configured my address completion to be based on received emails and +> I'm surprised how many variations of my email address is used by +> spammers :) + +I tried this and it seems to work. LGTM +1. + +Thanks to David's latest pushes I grabbed a little time from my temporarily +busy time and attempted to test this internal address completion... + +... for anyone who might be interested, the address harvesting command options +from emacs (without extra filtering) now are. + +notmuch 'address' '--format=sexp' '--format-version=2' \ +'--output=recipients' '--deduplicate=address' 'from:me@example.org' + +notmuch 'address' '--format=sexp' '--format-version=2' \ +'--output=sender' '--deduplicate=address' 'to:me@example.org' + +... I had text here wondering whether this from:/to: is too restrictive +but perhaps it is not. I don't know. Therefore I shut up now :D + + +Tomi + + + +> Cheers +> -Michal