From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 78D8D429E26 for ; Mon, 17 Oct 2011 06:12:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dYs3IodVCEVu for ; Mon, 17 Oct 2011 06:12:21 -0700 (PDT) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.36]) by olra.theworths.org (Postfix) with ESMTP id 8AF03429E25 for ; Mon, 17 Oct 2011 06:12:21 -0700 (PDT) Received: from [87.180.87.168] (helo=stokes.schwinge.homeip.net) by smtprelay02.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1RFmzK-0003f4-6s for notmuch@notmuchmail.org; Mon, 17 Oct 2011 15:12:18 +0200 Received: (qmail 7400 invoked from network); 17 Oct 2011 13:11:48 -0000 Received: from kepler.schwinge.homeip.net (192.168.111.7) by stokes.schwinge.homeip.net with QMQP; 17 Oct 2011 13:11:48 -0000 Received: (nullmailer pid 3919 invoked by uid 1000); Mon, 17 Oct 2011 13:11:48 -0000 From: Thomas Schwinge To: Daniel Schoepe Subject: Re: [PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches In-Reply-To: <87hb37n7e6.fsf@tredergarh.home.box> References: <1309896760-378-1-git-send-email-daniel.schoepe@googlemail.com> <1309961881-28333-1-git-send-email-daniel.schoepe@googlemail.com> <1309961881-28333-2-git-send-email-daniel.schoepe@googlemail.com> <8739es0ygy.fsf@kepler.schwinge.homeip.net> <87hb37n7e6.fsf@tredergarh.home.box> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Mon, 17 Oct 2011 15:11:47 +0200 Message-ID: <87lisjzrsc.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Df-Sender: dGhvbWFzQHNjaHdpbmdlLm5hbWU= Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Mon, 17 Oct 2011 13:12:22 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! On Mon, 17 Oct 2011 14:13:05 +0200, Daniel Schoepe wrote: > On Mon, 17 Oct 2011 11:16:45 +0200, Thomas Schwinge wrote: > > Is it permissible for message IDs to contain double quotes? If not (and > > I hope so), might id:\"[^\"]+\" be a better regexp? (Untested.) As it > > appears to me, this would allow proper matching in text like this, too: > >=20 > > Bla bla, see id:"some@thing". Bla bla. >=20 > My patch already works for this example, and I don't think spaces are > allowed in message IDs, so it shouldn't make a difference. Ah, of course, right... Yet, won't yours -- id:\"[^ ]+\" -- match too much in this example: Bla, bla, see id:"some@thing"--"some famous quote" is bla. How about this one? id:\(\"?\)[^[:space:]"]+\1 Test: id:some@thing "something" id:"some@thing"--"something" id:"some@thing"--something id:some@thing "something else" id:"some@thing"--"something else" id:"some@thing"--something else id:some@thing id:"some@thing" Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOnCmTAAoJEGe3hdm9kOiicHYH/3Wb8EFKbzzDGNPD+e+55196 mvWcy4Raj9aTB7AtcOGP58r9OYTnrsJQHCoFu8v3h5bw1LmGJjIn+ly8taJ5eSFe GCyjY/srT/vekOCrBpQpO8xk4pPRn/a7eUwuB6gPaj1+3Hc//cdhwDkmbcfwfdch XlN4Q3nzjODfC9BfX3YtPKAfZDlQKiUJbtcA1ifvXvp5Dky4Fn4ggr5Ts9G2P0bH zFzQOrrb8chjnGgqdsI5hYrkiVX3UhhWt69g7mFmsJoOUXTD8Be6jA41UcslC2KS /VP5l4QmtIuFrYA43rOYe2Tr5DaJMoOjUg11E4AOV9qSwKDS33LUVYjraMVSA4c= =Jm9m -----END PGP SIGNATURE----- --=-=-=--