Sean Kelly wrote:
On Feb 17, 2011, at 11:18 AM, Walter Bright wrote:
Sean Kelly wrote:
Does it extract the address and the full name as well? Simply validating something as an email address isn't terribly useful.
Terribly useful, maybe not. But it is useful in that:
1. lots of code does email validation, and most do it wrong
Yup. And that's the real problem. None of the top 5 mail apps/services
implement their encoding the same way, and all of them fail RFC compliance in
different ways. But users expect email sent from those services to be accepted
and display correctly. D. Sayers really seems to know his stuff though, and
I'd love to see things become more RFC-compliant so I certainly wouldn't object
to this addition. And to be fair, I'll admit that the major compliance issues
I've run into with email addresses are RFCs 2047 and 2231.
I can see someone needing an email validator that does it wrong for
legacy compatibility. But that isn't what we should supply in the
standard library.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos