Found the difference. RT3.6 use Mail::Address, RT3.8 uses
Email::Address. The later just ignores strings without a @ in there. See
example below.

 

Regardless, I'd like to be able to just block any email address that
have no domain.

 

$ perl -MMail::Address -e 'print join("\n", map { $_->address }
Mail::Address->parse(q{abc [EMAIL PROTECTED]))."\n"'

abc

[EMAIL PROTECTED]

$ perl -MEmail::Address -e 'print join("\n", map { $_->address }
Email::Address->parse(q{abc [EMAIL PROTECTED]))."\n"'

[EMAIL PROTECTED]

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mathieu
Longtin
Sent: July 29, 2008 10:37
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Forcing domains in email addresses

 

Is there a way to force email address entered to be [EMAIL PROTECTED]
rather than accept just "user"?

 

Also, in 3.8 (as opposed to 3.6), if you enter just "user", the email is
not sent, but no error message is given about it.

 

Thanks

 

-Mathieu

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to