help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How do I check if the format of an email address is valid?


From: Lennart Borgman
Subject: Re: How do I check if the format of an email address is valid?
Date: Thu, 30 Mar 2006 23:00:05 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

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 via email to

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