]> git.notmuchmail.org Git - notmuch/commit
emacs: Improve the regexp used to match id:'s in messages
authorAustin Clements <amdragon@MIT.EDU>
Thu, 15 Nov 2012 19:49:53 +0000 (14:49 -0500)
committerDavid Bremner <bremner@debian.org>
Thu, 15 Nov 2012 22:11:07 +0000 (18:11 -0400)
commit580997252f80b765b208fcd9f4c696c061e2b9ad
treebbb27a04d87e32ee6ed8fd1e6e807428cf9e0d14
parent65801835ee47dc4cada82c8a3ae16e8177a7919a
emacs: Improve the regexp used to match id:'s in messages

This regexp agrees with Xapian query syntax much more closely, though
we specifically disallow various cases that would be confusing in the
context of an email body (e.g., punctuation at the end of an id: link
is not considered part of the id: link because it's probably part of
the surrounding text).

In particular, this handles id: links that are not surrounded by
quotes much better, which stash is much more likely to generate now
that we don't quote id's that don't need to be quoted.  It also
handles quoted id: links better.

We update the buttonization test to reflect the new pattern.
emacs/notmuch-show.el
test/emacs-show