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 783FE429E26 for ; Mon, 17 Oct 2011 06:43:30 -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 bfCmrYbzPvBy for ; Mon, 17 Oct 2011 06:43:29 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A386C429E21 for ; Mon, 17 Oct 2011 06:43:29 -0700 (PDT) Received: by bke11 with SMTP id 11so3378911bke.26 for ; Mon, 17 Oct 2011 06:43:28 -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=pWn2JI9s+6hMJfg+f2+P8UsSeojr7GO9xa4ehIswVYM=; b=ORLIh3x+RmBVkD4+5NWppSurUVvoui8nEzQVehQl9xVr8riZQLC1J7b1Ni6O518xZe bJyZAR6KisoJO0znaVDrVn1CeakPvJYUMFwL46bv2LA3GULbp6ymMrzB4VYa7aFylzpw C2ZwtanV4V/pNAsi0sugMeSaBCE6uLYjaFUdM= Received: by 10.223.4.215 with SMTP id 23mr6646016fas.8.1318859007994; Mon, 17 Oct 2011 06:43:27 -0700 (PDT) Received: from localhost (s0200.dyn.hrz.tu-darmstadt.de. [130.83.104.200]) by mx.google.com with ESMTPS id k26sm23631463fab.12.2011.10.17.06.43.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Oct 2011 06:43:27 -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: <87lisjzrsc.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> <87hb37n7e6.fsf@tredergarh.home.box> <87lisjzrsc.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 15:43:18 +0200 Message-ID: <87ehybn37t.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 13:43:30 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 17 Oct 2011 15:11:47 +0200, Thomas Schwinge = wrote: > Ah, of course, right... Yet, won't yours -- id:\"[^ ]+\" -- match too > much in this example: >=20 > Bla, bla, see id:"some@thing"--"some famous quote" is bla. >=20 > How about this one? id:\(\"?\)[^[:space:]"]+\1 You're right, that isn't recognized correctly. According to RFC 822, the domain part of a message id (which is just "<" addr-spec ">", where addr-spec is the syntax for normal mail adresses) may contain double quotes and any other characters if they are escaped with a \. I think however, that we don't have to handle all those corner cases in a feature that is merely for convenience, such as this. In conclusion I think we should allow non-quoted id:..-links, but not worry about people having escaped spaces or things like that in their domain parts. What do you think? Cheers, Daniel --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOnDD2AAoJEIaTAtce+Z+JbdMP/2oYBhCYTfwG56QVQjNAl7fI nszrw5FOPy/nT8768sck5lDxa9OQTzYeElRXUgFhp1JpsxwOCjFXcCK5T1ftyYRD 4xWKCZJwXzIiAqG/F4aNjjRWZiWaAayXdQ9yPRPLIUS7CzcJJRr0LOx+hOUlAjiL XUqwAqNpiNcpMG9CZpc7m4v8gUl1mEAcGaN0UeZPE485vAmTk50RMMxIjevV2sMe 7PbfSGfimoneHLOVVGYKm5Y5rFKhP6utuso6/Y0zjmjJcbmEwp8kpYRkQ5VtZOkt n+2Gb7kKjmTAAXyfDh9ui6naZ/B8j6YLdVvqspw8sR8OBblFT6avC8TYLRTurx27 aYHoxhvj1iwPPls2zd8oSDe4pU0lOLgCKqguv8w/xJXpZauZyythjqHF/NpZDHNt QbaYCXInJjqiILcEYZcRVUBsKZ6K0foFKWtgZufvA120sh8s9LBhuvYbsjYqFTTP YJpuDu+/Z7zzei2t3moxo3G/sgtdRwEaLKMsBrMwjVMiweuek4tH4kB7EToaREvJ +9czF/amGvAKKSSls/FodUmuSOnfK4ldu/O4rrp0o1LEHhjdgMwClchX5URRlpWW GFM3kCHQUZ1tjsHdwSW/PHMghCM72DY8mMwCNU8H1DfPtgyNOgeY88rlct4WeqRL Ct6kJZHfYQL12w1+7TkX =8sBx -----END PGP SIGNATURE----- --=-=-=--