emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding email address support to thingatpt.el.


From: Andreas Roehler
Subject: Re: Adding email address support to thingatpt.el.
Date: Tue, 27 Feb 2007 08:37:13 +0100
User-agent: Thunderbird 1.5.0.4 (X11/20060516)


AFAIU rfc2822, several more chars are allowed to be
part of an email-adress than regexp honours now:

It's tough to know what to include.  Many characters that technically
could be part of an email address are rarely used in practice, and
instead appear much more often as delimiters (in certain contexts).
So if thingatpt.el is to Do The Right Thing most often for the user,
it probably can't comply precisely with the RFC.


If Emacs is more restrictive than RFC2822, errors and
bug-reports are ahead.

BTW: Does RFC2822 indeed require at least two chars before
the `@'? I'm not sure about it, but can't see that.

So the core of my regexp, taking the ranges from RFC, is this:

address@hidden


__
Andreas Roehler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]