Trailing dot in email (Was: Re: Possible bug according to Rasmus Leerdorf)

2010-04-04 18:07, Lars Gunther skrev:

My bug was marked a duplicate to this one:

Which in turn was marked invalid. It seems this behaviour is intentional:

I will probably raise this to an issue, since the "hard data" in this 
case is ambiguous and thus hardly something we can use to break an RFC.

The ambiguity is the fact that one program did in fact refuse to send 
the email (GNU mail). The user in question said it "worked" but that is 
hardly "hard data". Did it work all the time? How many failed attempts 
have ther been that he has never noticed?

The fact that some MTAs will allow mail to be transmitted even if their 
format is flawed is not a strong enough argument. It is rather something 
that one should file a bug for at the bug system for those MTAs.

Ninjas of various kinds will always experiment with the system and find 
loopholes. It is not the mission of HTML5 to make such loopholes a 
standard behaviour.

Rasmus Leerdorf has just submitted fixes to FILTER_VALIDATE_EMAIL for 
PHP. This will make the use of trailing dots invalid according to the 
recommended test for the most widely deployed server-side scripting 

It will probably mean that Mediawiki some time in the future are going 
to disallow it, as well as Facebook, since using the built in 
functionality sooner or later will trickle into their code base.

Perl's CPAN email validator uses an regexp inspired by Jeffrey Friedl:

 From a developer perspective, it makes best sense having the client 
side validation be as close to the server side validation as possible in 
its functionality. Of course they can not be identical always, but the 
less the divergence is, the easier it is to develop apps.

P.S. I am sorry I missed this discussion in August. I can't be everywhere...

Lars Gunther

Received on Sunday, 4 April 2010 20:24:57 UTC