From 5100b625e5667216f065ad39efa850c0c57cfc12 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Sat, 13 Aug 2016 16:29:38 +1700 Subject: [PATCH] Re: [WIP PATCH] emacs: query: completion for from: in searches --- 67/62d328b1e2d5ce5cc396ddf9b1a5855b3a9785 | 119 ++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 67/62d328b1e2d5ce5cc396ddf9b1a5855b3a9785 diff --git a/67/62d328b1e2d5ce5cc396ddf9b1a5855b3a9785 b/67/62d328b1e2d5ce5cc396ddf9b1a5855b3a9785 new file mode 100644 index 000000000..b779033d6 --- /dev/null +++ b/67/62d328b1e2d5ce5cc396ddf9b1a5855b3a9785 @@ -0,0 +1,119 @@ +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 D09616DE1EC9 + for ; Fri, 12 Aug 2016 16:38:11 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.807 +X-Spam-Level: +X-Spam-Status: No, score=-0.807 tagged_above=-999 required=5 tests=[AWL=0.530, + HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_MED=-2.3, + SPF_SOFTFAIL=0.972, T_RP_MATCHES_RCVD=-0.01] 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 locfvsMrNNGT for ; + Fri, 12 Aug 2016 16:38:03 -0700 (PDT) +X-Greylist: delayed 501 seconds by postgrey-1.35 at arlo; + Fri, 12 Aug 2016 16:38:03 PDT +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by arlo.cworth.org (Postfix) with ESMTPS id 65F716DE1E86 + for ; Fri, 12 Aug 2016 16:38:03 -0700 (PDT) +Received: from smtp02.caltech.edu (localhost [127.0.0.1]) + by smtp02.caltech.edu (Postfix) with ESMTP id DF1E86C234B; + Fri, 12 Aug 2016 16:29:40 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on smtp02.caltech.edu by amavisd-new +Received: from finestructure.net (gwave-192.ligo.caltech.edu + [131.215.114.192]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 + (256/256 bits)) (No client certificate requested) (Authenticated sender: + jrollins) by smtp-server.its.caltech.edu (Postfix) with ESMTPSA id + 944CB6C2302; Fri, 12 Aug 2016 16:29:40 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 8851D6023F; Fri, 12 Aug 2016 16:29:40 -0700 (PDT) +From: Jameson Graef Rollins +To: Mark Walters , notmuch@notmuchmail.org +Subject: Re: [WIP PATCH] emacs: query: completion for from: in searches +In-Reply-To: <1471032242-4701-1-git-send-email-markwalters1009@gmail.com> +References: <1471032242-4701-1-git-send-email-markwalters1009@gmail.com> +User-Agent: Notmuch/0.22.1+72~gbb2cd53 (https://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Fri, 12 Aug 2016 16:29:38 -0700 +Message-ID: <87a8ghk1lp.fsf@servo.finestructure.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha512; protocol="application/pgp-signature" +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: Fri, 12 Aug 2016 23:38:12 -0000 + +--=-=-= +Content-Type: text/plain + +On Fri, Aug 12 2016, Mark Walters wrote: +> This is a first attempt at tab completion for from: searches +> --- +> +> This sort of works (well it works but maybe in unexpected ways!) +> +> At the moment it completes to any word (as delimited by whitespace) in +> any address stored in the address hashmap. It does not trigger the +> address harvesting itself -- you either need to call +> notmuch-address-harvest-trigger manually, or use address completion +> when sending a mail first, and the harvest needs to finish before this +> will work. +> +> Since the hashmap does some address deduplication this will not give +> perfect completion (there may be names in your database it won't +> complete to). Also completion is case-sensitive. +> +> Getting a perfect solution may be more effort than its worth -- this +> will probably demonstrate whether something like this suffices. + +Mark, this patch is awesome. Really, it works great and is incredibly +useful. With it I am able to trivially find emails that have +traditionally been very difficult for me to retrieve because the sender +addresses are obscure, e.g. I've only been able to remember a couple +starting characters. + +This is on par with the tag: completion for usefulness. It would be +great to extend this to to: completion as well. + ++2 + +Thanks so much, Mark. + +jamie. + +--=-=-= +Content-Type: application/pgp-signature; name="signature.asc" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAEBCgAGBQJXrlviAAoJEO00zqvie6q8uOkQAKP9OhBNF/3nG78B4FmfN77n +HA4uCty2P/FKdUgx3Gy24ASFEZc36o5h4Fq2Yq+mQnvWpJedMpCzwWKRmnEKFS+F +zUce9vVoTqryNWMpu6mDmXgGElJrWXFz9ComhPjVxn+1LAMvdIHerwDBsMhqYTnV +0G6PzMc3g5+4KEx+cdbb394n63drECNnuBU/0+PxwF5qebMhrpU2ITHDgmw9oGRk +jTZWiJ/dYzzHOmDzF1PkfXORkJYS509oDb15UQ+p4K3q2VRIQ1+AeDgtqtCswt8O +9ef/gf9yPxpzOCW4buHxJWaJvtJ6gSx5XJxwaUn6B71v/mCeOcNWGMeyP3tjju0e +DdAzFQEOild3dHzlk0zpcDagWawORTT2jOJ687XzTNka4PXB/DYo6xAnMYvwhx2Q +6dtAJgEkvdRWl/0yO+6NA+XFr8CJHXiD98fcl/hvQi6jlUjm+p9C8VR2cEOo6P1q +aSaJxuGLOiBDiHXk/yQec0jZ6+Wcrt2YPlaH++aSu4PIw9s6pyHBDQT1eqR4Y+6f +WXneusoyzDbqMOSHnwFAiVyvgYHGS+wc2rn1z145mEBXJ+tRdJjaF9HXxBMhhORZ +H5Seo4sMUIKKRl1RHS2s/23BxWU5Wvx8BwDU38F+NQ8rY8Yeub/YsOSHfZ1Oys7h +c5/o8tBiITvDKzvg6lEQ +=a3SW +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2