Re: [PATCH v2] emacs: Turn id:"<message-id>" elements into buttons for notmuch searches
authorThomas Schwinge <thomas@schwinge.name>
Mon, 17 Oct 2011 09:16:45 +0000 (11:16 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:41 +0000 (09:39 -0800)
db/157587040d19d686a1a3db0f5ea69e813e3a75 [new file with mode: 0644]

diff --git a/db/157587040d19d686a1a3db0f5ea69e813e3a75 b/db/157587040d19d686a1a3db0f5ea69e813e3a75
new file mode 100644 (file)
index 0000000..4909757
--- /dev/null
@@ -0,0 +1,113 @@
+Return-Path: <thomas@schwinge.name>\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 AFFCB429E26\r
+       for <notmuch@notmuchmail.org>; Mon, 17 Oct 2011 02:17:21 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 KqmKBki8rNlH for <notmuch@notmuchmail.org>;\r
+       Mon, 17 Oct 2011 02:17:21 -0700 (PDT)\r
+X-Greylist: delayed 47541 seconds by postgrey-1.32 at olra;\r
+       Mon, 17 Oct 2011 02:17:20 PDT\r
+Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de\r
+       [80.67.29.8])\r
+       by olra.theworths.org (Postfix) with ESMTP id CCBC4429E25\r
+       for <notmuch@notmuchmail.org>; Mon, 17 Oct 2011 02:17:20 -0700 (PDT)\r
+Received: from [87.180.87.168] (helo=stokes.schwinge.homeip.net)\r
+       by smtprelay04.ispgateway.de with esmtpa (Exim 4.68)\r
+       (envelope-from <thomas@schwinge.name>) id 1RFjJt-0007Gb-L0\r
+       for notmuch@notmuchmail.org; Mon, 17 Oct 2011 11:17:18 +0200\r
+Received: (qmail 4901 invoked from network); 17 Oct 2011 09:16:50 -0000\r
+Received: from kepler.schwinge.homeip.net (192.168.111.7)\r
+       by stokes.schwinge.homeip.net with QMQP; 17 Oct 2011 09:16:50 -0000\r
+Received: (nullmailer pid 32461 invoked by uid 1000);\r
+       Mon, 17 Oct 2011 09:16:50 -0000\r
+From: Thomas Schwinge <thomas@schwinge.name>\r
+To: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
+Subject: Re: [PATCH v2] emacs: Turn id:"<message-id>" elements into buttons\r
+       for notmuch searches\r
+In-Reply-To: <1309961881-28333-2-git-send-email-daniel.schoepe@googlemail.com>\r
+References: <1309896760-378-1-git-send-email-daniel.schoepe@googlemail.com>\r
+       <1309961881-28333-1-git-send-email-daniel.schoepe@googlemail.com>\r
+       <1309961881-28333-2-git-send-email-daniel.schoepe@googlemail.com>\r
+User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i486-pc-linux-gnu)\r
+Date: Mon, 17 Oct 2011 11:16:45 +0200\r
+Message-ID: <8739es0ygy.fsf@kepler.schwinge.homeip.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-Df-Sender: dGhvbWFzQHNjaHdpbmdlLm5hbWU=\r
+Cc: notmuch@notmuchmail.org\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, 17 Oct 2011 09:17:21 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hi!\r
+\r
+Good idea!\r
+\r
+\r
+On Wed,  6 Jul 2011 16:18:01 +0200, Daniel Schoepe <daniel.schoepe@googlema=\r
+il.com> wrote:\r
+> +(defun notmuch-show-buttonise-links (start end)\r
+> +  "Buttonise URLs and mail addresses between START and END.\r
+> +\r
+> +This also turns id:\"<message id>\"-parts into buttons for\r
+> +a corresponding notmuch search."\r
+> +  (goto-address-fontify-region start end)\r
+> +  (save-excursion\r
+> +    (goto-char start)\r
+> +    (while (re-search-forward "id:\"[^ ]+\"" end t)\r
+\r
+Is it permissible for message IDs to contain double quotes?  If not (and\r
+I hope so), might id:\"[^\"]+\" be a better regexp?  (Untested.)  As it\r
+appears to me, this would allow proper matching in text like this, too:\r
+\r
+    Bla bla, see id:"some@thing".  Bla bla.\r
+\r
+\r
+Even if not favorable, should a syntax without double quotes be\r
+supported, too?  Here we'd really have to match on whitespace and line\r
+end, as everything else is too ambiguous.\r
+\r
+\r
+Gr=C3=BC=C3=9Fe,\r
+ Thomas\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQEcBAEBAgAGBQJOm/J9AAoJEGe3hdm9kOiiTKkIAOdCWGu291dw0AuDxBPKrbzq\r
+hAYPLRyoUpNeTn+NS/2HXGHzeaYbtdHHDOzz5f+gPNjB0YI7JVxRSs9nR5KnzBnl\r
+xWTqYlBJj03FminUiAiuxV++Fg79haX7fHct0g/WGuO/BLKDRm/XG8g38MeJ7TMu\r
+YzQ7ij2+cHmS3zQXUk5j9vj+3c2c3XjNYO6C3avgJ2T9gIuh7Vz5iu56WbRUvtsn\r
+iK+UtexNo1sYVpvnfkvTdMs0Xs9W+lwd4YIHlcswX/0asYb6hztSQd/EKZSX52pb\r
+eDuihA/cobmjRmLZjs8UlUCLCvBNvOXU8BwlMvIJHHTTk+EldU9veRjqyh773Lc=\r
+=2MCh\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r