unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How do I check if the format of an email address is valid?
Date: Thu, 30 Mar 2006 23:00:05 +0200	[thread overview]
Message-ID: <442C46D5.8050603@student.lu.se> (raw)
In-Reply-To: <v9lkusvwzp.fsf@marauder.physik.uni-ulm.de>

Reiner Steib wrote:
> On Thu, Mar 30 2006, Lennart Borgman wrote:
>
>   
>> How do I do this in Elisp?
>>     
>
> How do you define a "valid email address"?
>
> (a) Valid according to RFC2822?
>
> (b) Valid in the sense of the given domain exists, can receive mail
>     and the localpart corresponds do a mailbox?
>
> (c) Something different?
>
> For (a), the variables `gnus-button-mid-or-mail-regexp',
> `gnus-button-valid-localpart-regexp' and
> `gnus-button-valid-fqdn-regexp' in `gnus-art.el' contain some related
> checks.
>
> Bye, Reiner.
>   
Thanks Reiner! Two small worries:

- `message-valid-fqdn-regexp' (which is copied to 
`gnus-button-valid-local-part-regexp') has a list of TLD:s. Is this 
really wise? I guess there will be new TLD:s. (In fact there may already 
be some that are not in this list.)

- It is maybe a pitty that you have to load those big modules (message 
and gnus) just to get the patterns.

And then I can not stop myself from wondering if there really are any 
format of email addresses that asures that conforming addresses are 
actually existing email adresses ;-)

  reply	other threads:[~2006-03-30 21:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-30 12:35 How do I check if the format of an email address is valid? Lennart Borgman
2006-03-30 14:16 ` Reiner Steib
2006-03-30 21:00   ` Lennart Borgman [this message]
     [not found]   ` <mailman.196.1143752412.2481.help-gnu-emacs@gnu.org>
2006-03-30 21:24     ` Pascal Bourguignon
2006-03-30 22:25       ` Lennart Borgman
2006-03-30 23:30         ` Reiner Steib
2006-03-31 11:26           ` Lennart Borgman
2006-03-31 14:05             ` Reiner Steib
2006-03-31 21:02               ` Lennart Borgman
     [not found] <mailman.169.1143722125.2481.help-gnu-emacs@gnu.org>
2006-03-31 13:33 ` Mathias Dahl
2006-04-02 12:20   ` Xavier Maillard
2006-04-02 13:02     ` Lennart Borgman

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=442C46D5.8050603@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).