Re: Verify an e-mail-adress - syntax and dns

2006-09-26 Thread Christophe
Steven D'Aprano a écrit : On Mon, 25 Sep 2006 16:11:38 +0200, Christophe wrote: This is useless AND annoying at the same time. But people like us don't screw up our email address in the first place, and if we do, we know how to fix it. Not everybody is like us. So you say that the better

Re: Verify an e-mail-adress - syntax and dns

2006-09-26 Thread Diez B. Roggisch
Besides, what is so special with electronic forms that we have to go through all kind of tricks to make sure the user doesn't make mistakes when regular paper forms just assume the user will be careful when he fills it? Must be some kind of IQ draining field emited by all the computers which

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Frithiof Andreas Jensen
Ingo Linkweiler [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bjoern Schliessmann schrieb: Ingo Linkweiler wrote: b) verify an existing mailserver or DNS/MX records Or? That's two different things. If you don't know already: Even if you test all this, it is still

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Steven D'Aprano
On Sun, 24 Sep 2006 13:23:03 +0200, Ingo Linkweiler wrote: The usual way to cope with this is sending out confirmation mails. No need to check if the address is syntactically correct beforehand. yes, I do this allready. But it would be nice to do some checks before to avoid wrong user

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Christophe
Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the user to type it twice. That will protect against simple typos and

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Steve Holden
Christophe wrote: Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the user to type it twice. That will protect against

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Georg Brandl
Christophe wrote: Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the user to type it twice. That will protect against

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Christophe
Georg Brandl a écrit : Christophe wrote: Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the user to type it

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Christophe
Steve Holden a écrit : Christophe wrote: Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the user to type it

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Fredrik Lundh
Frithiof Andreas Jensen wrote: For those kind of sites demanding registration for trivial usage (i.e. most sites do) I use my own domain controlled by myself - the adress is valid for the confirmation mail then, after I got what I came for (or after I found out that this site was a waste of

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Georg Brandl
Christophe wrote: Georg Brandl a écrit : Christophe wrote: Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Steven D'Aprano
On Mon, 25 Sep 2006 16:11:38 +0200, Christophe wrote: Steven D'Aprano a écrit : By memory, in an thread about the same topic just a few days ago, Fredrik Lundh posted a link to Perl's FAQs that suggests a method for validating email addresses: treat it like a password and ask the user to type

Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Ingo Linkweiler
Has anyone a function/script to verify an e-mail-address? It should: a) check the syntax b) verify an existing mailserver or DNS/MX records ingo -- http://mail.python.org/mailman/listinfo/python-list

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Bjoern Schliessmann
Ingo Linkweiler wrote: b) verify an existing mailserver or DNS/MX records Or? That's two different things. If you don't know already: Even if you test all this, it is still possible that - the target mail account doesn't exist - the sender's IP is filtered by the server so he'll reject - the

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Ingo Linkweiler
Bjoern Schliessmann schrieb: Ingo Linkweiler wrote: b) verify an existing mailserver or DNS/MX records Or? That's two different things. If you don't know already: Even if you test all this, it is still possible that - the target mail account doesn't exist - the sender's IP is

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Ingo Linkweiler wrote: The script will be used as part auf a user registration page to avoid dummy-inputs like [EMAIL PROTECTED] The usual way to cope with this is sending out confirmation mails. No need to check if the address is syntactically correct beforehand.

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Ingo Linkweiler
The usual way to cope with this is sending out confirmation mails. No need to check if the address is syntactically correct beforehand. yes, I do this allready. But it would be nice to do some checks before to avoid wrong user inputs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Bjoern Schliessmann
Ingo Linkweiler wrote: yes, I do this allready. But it would be nice to do some checks before to avoid wrong user inputs. What do you do if the user inputs a wrong address? If you reject with an error message, the medium intelligent user will enter something like [EMAIL PROTECTED] as next

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Ben Finney
Bjoern Schliessmann [EMAIL PROTECTED] writes: Ingo Linkweiler wrote: yes, I do this allready. But it would be nice to do some checks before to avoid wrong user inputs. What do you do if the user inputs a wrong address? If you reject with an error message, the medium intelligent user will

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Bjoern Schliessmann
Ben Finney wrote: I believe Ingo is checking for the case where the user intended to enter a valid email address, and made a typing error resulting in a trivially invalid one. Ah. Good intention, but the same applies: Typos in the localpart are not detectable. Typos in the domain part could

Re: Verify an e-mail-adress - syntax and dns

2006-09-24 Thread Tim Williams
On 24/09/06, Ingo Linkweiler [EMAIL PROTECTED] wrote: Has anyone a function/script to verify an e-mail-address? It should: a) check the syntax b) verify an existing mailserver or DNS/MX records b) is problematical. A domain with MX records may not really have a mail server at all. Under