Re: test if email

2007-10-13 Thread Bjoern Schliessmann
Martin Marcher wrote: > No need to speek of plus addressing or older messaging systems. But don't disallow a plus in the localpart. Many do. Regards, Björn -- BOFH excuse #180: ether leak -- http://mail.python.org/mailman/listinfo/python-list

Re: test if email

2007-10-12 Thread Ben Finney
Florian Lindner <[EMAIL PROTECTED]> writes: > is there a function in the Python stdlib to test if a string is a > valid email address? Not to my knowledge. Florian Lindner <[EMAIL PROTECTED]> writes: > I was just asking for the correct syntax of the mail address. Well, you weren't actually (I

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 12, 4:59 pm, brad <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> is there a function in the Python stdlib to test if a string is a valid >>

Re: test if email

2007-10-12 Thread Martin Marcher
2007/10/12, Grant Edwards <[EMAIL PROTECTED]>: > On 2007-10-12, Florian Lindner <[EMAIL PROTECTED]> wrote: > > > I was just asking for the correct syntax of the mail address. I know about > > the various problems actually impossibility to test for a live and valid > > address. > > Don't forget to a

Re: test if email

2007-10-12 Thread George Sakkis
On Oct 12, 4:59 pm, brad <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > >> Hello, > >> is there a function in the Python stdlib to test if a string is a valid > >> email address? > > here's a Perl re example... I don't know

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, Florian Lindner <[EMAIL PROTECTED]> wrote: > I was just asking for the correct syntax of the mail address. I know about > the various problems actually impossibility to test for a live and valid > address. Don't forget to allow uucp style "bang" addresses. :) -- Grant Edwards

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, brad <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> If you send an e-mail to an address and you get a response, >> then it's valid. > > No response could be valid too. Right. A->B doesn't mean that !A -> !B -- Grant Edwards grante Yow! Did I

Re: test if email

2007-10-12 Thread Florian Lindner
[EMAIL PROTECTED] wrote: > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> Hello, >> is there a function in the Python stdlib to test if a string is a valid >> email address? >> >> Thanks, >> >> florian > > What do you mean? If you're just testing the construction of the email

Re: test if email

2007-10-12 Thread brad
[EMAIL PROTECTED] wrote: > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> Hello, >> is there a function in the Python stdlib to test if a string is a valid >> email address? here's a Perl re example... I don't know whether to laugh or cry... don't try to replicate this in Pytho

Re: test if email

2007-10-12 Thread brad
Grant Edwards wrote: > If you send an e-mail to an address and you get a response, > then it's valid. No response could be valid too. The user may not respond. For automated tasks, I go with the no bounce method. When things start bouncing, do domething, but so long as they don't bounce do some

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, brad <[EMAIL PROTECTED]> wrote: > Florian Lindner wrote: >> Hello, >> is there a function in the Python stdlib to test if a string is a valid >> email address? > > Nope, most any string with an @ in it could be a valid email addy. Send > a message to the addy, if it doesn't bounce,

Re: test if email

2007-10-12 Thread Tim Williams
On 12/10/2007, brad <[EMAIL PROTECTED]> wrote: > Florian Lindner wrote: > > Hello, > > is there a function in the Python stdlib to test if a string is a valid > > email address? > > Nope, most any string with an @ in it could be a valid email addy. Send > a message to the addy, if it doesn't bounce

Re: test if email

2007-10-12 Thread Tim Williams
On 12/10/2007, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > is there a function in the Python stdlib to test if a string is a valid > email address? > You mean a valid SMTP email address? In reality, there isn't a way of doing this. But a good rule of thumb is if it hasn't got at least

Re: test if email

2007-10-12 Thread brad
Florian Lindner wrote: > Hello, > is there a function in the Python stdlib to test if a string is a valid > email address? Nope, most any string with an @ in it could be a valid email addy. Send a message to the addy, if it doesn't bounce, then it's valid. -- http://mail.python.org/mailman/listi

Re: test if email

2007-10-12 Thread kyosohma
On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > is there a function in the Python stdlib to test if a string is a valid > email address? > > Thanks, > > florian What do you mean? If you're just testing the construction of the email address string, then it's pretty easy. I

test if email

2007-10-12 Thread Florian Lindner
Hello, is there a function in the Python stdlib to test if a string is a valid email address? Thanks, florian -- http://mail.python.org/mailman/listinfo/python-list