Re: [WIP PATCH] emacs: query: completion for from: in searches
authorJameson Graef Rollins <jrollins@finestructure.net>
Fri, 12 Aug 2016 23:29:38 +0000 (16:29 +1700)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:23 +0000 (16:22 -0700)
67/62d328b1e2d5ce5cc396ddf9b1a5855b3a9785 [new file with mode: 0644]

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