dot/gnus.el: Make `<' and `>' be punctuation when splitting mail.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 14 Apr 2020 17:24:32 +0000 (18:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 20 Apr 2020 12:23:49 +0000 (13:23 +0100)
commit169ce333e29afcc7c30ba3ce52f2f90c6e2a58d4
tree3014a911aa31dcc8ec7ab04f9684b4ccdcf48d6b
parent9778630e5d065536276ab5c9f8bc7c541af0f5e0
dot/gnus.el: Make `<' and `>' be punctuation when splitting mail.

Email addresses are commonly written between angle brackets in header
lines.  I sometimes want to be able to parse out an entire email
address, or at least a local-part, from a header, as part of a Gnus
split specifier.  But Gnus prepends a `.*' to the split regexp, so one
needs to take special precautions to start in the right place, typically
by using `\_<' to align to the start of a symbol.  But if `<' is a
symbol character, then this won't work.

Worse, Gnus typically also tries to align to a word boundary by sneaking
in `\<'.  But then we have `\<\_<', which rejects an email address
starting enclosed in `<' ... `>' altogether.

Fortunately, the syntax table used by Gnus while splitting email is
configurable, so we can override this silliness.
dot/gnus.el