unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Roehler <andreas.roehler@easy-emacs.de>
To: Karl Fogel <kfogel@red-bean.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Adding email address support to thingatpt.el.
Date: Tue, 27 Feb 2007 08:37:13 +0100	[thread overview]
Message-ID: <45E3DFA9.5000608@easy-emacs.de> (raw)
In-Reply-To: <87abyz7qgd.fsf@floss.red-bean.com>


>   
>> 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:

[\041-\132\136-\176]+@[\041-\132\136-\176]+


__
Andreas Roehler

  reply	other threads:[~2007-02-27  7:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-25 19:25 Adding email address support to thingatpt.el Karl Fogel
2007-02-25 10:50 ` Andreas Schwab
2007-02-26  3:27 ` Richard Stallman
2007-02-26 13:31   ` Karl Fogel
2007-02-26 18:00     ` Andreas Roehler
2007-02-27 12:08       ` Karl Fogel
2007-02-27  7:37         ` Andreas Roehler [this message]
2007-02-27 14:49           ` Drew Adams
2007-02-27 20:49             ` Karl Fogel
2007-02-27 17:19           ` Karl Fogel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E3DFA9.5000608@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=emacs-devel@gnu.org \
    --cc=kfogel@red-bean.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).