Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1FD95429E27 for ; Mon, 17 Oct 2011 05:13:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.512 X-Spam-Level: X-Spam-Status: No, score=0.512 tagged_above=-999 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01] 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 6I6HX8V36FEg for ; Mon, 17 Oct 2011 05:13:16 -0700 (PDT) Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 5E3D3429E25 for ; Mon, 17 Oct 2011 05:13:16 -0700 (PDT) Received: by ywm19 with SMTP id 19so3013778ywm.26 for ; Mon, 17 Oct 2011 05:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=knpbVWxea7Ks1LVbi5z3PeYcRbkjNC3mKj4SHmS9PXQ=; b=Qq+h8s2asmT7fqJmUKKkFbPse/orunXCY4lBjnniH2VcJmFAXN3PhmLGq+8dh7/S+q JlgHQSCVr8DfYJojot2xLfZKD9vVVzmTXrmM4yB0+Fsc8wWCNW3RCOwx81DDbEjMXeI+ UuaN2GsOzz7TROoVsZTSiblpLyyJBDsu7ipB0= Received: by 10.223.5.3 with SMTP id 3mr23953503fat.4.1318853595649; Mon, 17 Oct 2011 05:13:15 -0700 (PDT) Received: from localhost (s0200.dyn.hrz.tu-darmstadt.de. [130.83.104.200]) by mx.google.com with ESMTPS id u6sm23282585fan.17.2011.10.17.05.13.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Oct 2011 05:13:14 -0700 (PDT) Sender: Daniel Schoepe From: Daniel Schoepe To: Thomas Schwinge Subject: Re: [PATCH v2] emacs: Turn id:"" elements into buttons for notmuch searches In-Reply-To: <8739es0ygy.fsf@kepler.schwinge.homeip.net> 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> User-Agent: Notmuch/0.9-19-g4753484 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Mon, 17 Oct 2011 14:13:05 +0200 Message-ID: <87hb37n7e6.fsf@tredergarh.home.box> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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 12:13:17 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable 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. 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. > Even if not favorable, should a syntax without double quotes be > supported, too? Here we'd really have to match on whitespace and line > end, as everything else is too ambiguous. I guess the syntaxes we have to support are those produced by notmuch frontends, at least until other mailing lists start using this kind of references as well. I don't think the quotes are necessary, since the IDs don't contain any spaces, so your suggestion would be preferable (of course, that might lead to more id:..-texts turned into links even though they aren't intended to be).=20 I'll send an edited patch later. Cheers, Daniel --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOnBvRAAoJEIaTAtce+Z+J/F0P/jOH/MEQ+cZRk4l8mPvs1ruL erIHFnW0jXBb16ScpHbKOJgEBqv7s8NdIR558/ovrPW44Q1LPvvVb+zyAY2pjUUq 1/CHDnceyG/6ki0JHoP9ZbUYk9c1nzuZDhZyr7A+mVnD+Gsc4Xtjnz7BYpJIZ9SM XB5YrcUxE6mWTNyD+lTM5agRvfimqhOlXFPPNp4aQiUA9s/fXB9ofk+HlYkeqeP/ L0V9z5UxPGiknvYpDJN7VTGCjLgaoON0f8qWZPFEwo8tUMygM5vNHqnF/Hd2SqqZ O6isW4OX9otbqxFhBz5j8xf4dA/STtK8eunIu2loWjiPiZ5OE3V8Ie1k6I675kgV wK5Fvg93sH17q7h+vGW6PD78Ot2Us05dib6DAVFAaAPk3LwJSa8HKmsiFgRGUCaU 6uf/k0v+4YPsOrEwkTEoA24pkjTfZES1nFjYiB8f+11qhOSqI3t3KDRxaPToeeEe ZHeB/amAazDizblib3jOXPe80M33nOAHSZQ0/VAafORnI9so1E6vOgMqAuVfaGJ/ 4fI0teWpkYehHrzSb+hHFAkXSoVEbuXu0LBCfvdXrhwdWpLeVlN7DllWu7KA9USj nkG3iW0DlVkFNmQr730ecperHKyKQxLwxjUtDtOxWQKrZkRQMuF5/Z8TKbI030W/ k3QfBaISNlDjDLoo38Em =uuHO -----END PGP SIGNATURE----- --=-=-=--