[Solar-talk] ValidateEmail filter
Paul M Jones
pmjones at paul-m-jones.com
Sat Mar 8 15:25:44 CST 2008
On Mar 8, 2008, at 15:12 , Paul M Jones wrote:
>
> On Mar 8, 2008, at 10:15 , JB wrote:
>
>> >From RFC 2821, the last line says it all.
> ...
>> A domain name that is not in FQDN form is no more than a local
>> alias. Local aliases MUST NOT appear in any SMTP transaction.
>
> Point, set, match! :-)
>
> I'll edit the regex (which is copied from elsewhere anyway) to
> require a domain name. Thanks guys. :)
Jeff Surgeson -- in the Solar_Filter_ValidateEmail class, line 68,
change the definition of $domain from this:
$domain = "$sub_domain(\\x2e$sub_domain)*";
To this:
$domain = "$sub_domain(\\x2e$sub_domain)+";
That should do the trick; let me know how it works out.
Thanks everyone!
-- pmj
More information about the Solar-talk
mailing list