Quote from: rthrash at Apr 15, 2007, 02:10 PM
The RFC spec allows for some interesting things, including emails in the form of "ryan@office"@collabpad.com ... some interesting regex ensues...
Yes but the use of quoted strings in an email address is rare. So I will not include support for such e-mail addresses unless somebody really needs it.
Quote from: sottwell at Apr 15, 2007, 01:03 AM
It looks like a pretty simple fix, for anybody who is more regex savvy than I am; the regex needs to specify one or more characters before the @.
I think I found the bug. Change
$atom = "[-!#$%&'*+/=?^_`{|}~0-9A-Za-z]*";
to
$atom = "[-!#$%&'*+/=?^_`{|}~0-9A-Za-z]+";
(The last ’*’ should be a ’+’, so that empty strings do not match.)
Will test it and upload an update soon.