Re: [PATCH 2/2] emacs: Improve the regexp used to match id:'s in messages

Subject: Re: [PATCH 2/2] emacs: Improve the regexp used to match id:'s in messages

Date: Thu, 01 Nov 2012 15:01:10 +0100

To: Austin Clements, notmuch@notmuchmail.org

Cc:

From: Sascha Silbe


Austin Clements <amdragon@MIT.EDU> writes:

> +(defvar notmuch-id-regexp
> +  (concat
> +   ;; Match the id: prefix only if it begins a word (to disallow, for
> +   ;; example, matching cid:).
> +   "\\<id:\\("
[...]

Since you're already at it, please extend it to accept RFC2392 [1]
syntax for message URLs:

     mid-url       = "mid" ":" message-id [ "/" content-id ]

The id: syntax is non-standard (i.e. specific to notmuch).

Sascha

[1] http://www.ietf.org/rfc/rfc2392.txt
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
part-000.sig (application/pgp-signature)

Thread: