Thomas Bruederli wrote:
> Benjamin Vanheuverzwijn wrote:
>> Also, should we check (using Javascript) if destination fields ("To:", 
>> "Cc:", "Bcc:") are RFC822 compliant before sending mail ? I mean 
>> throwing an error with bad formatted field (Buggy: name 
>> <[EMAIL PROTECTED]> isn't valid, but "Buggy: name" <[EMAIL PROTECTED]> is).
> 
> Good idea. You're welcome to extend the according javascript function to 
> check this complex syntax. Or even better, try to escape it first (as done 
> in your patch) and then throw an error if there's still something wrong.

it should be done according to rfc1522, look at
http://trac.roundcube.net/ticket/1484884 and
http://www.squirrelmail.org/docs/phpdoc/squirrelmail/_functions---mime.php.html

...but, of course, Benjamin's patch is a move in right way.

Regards
-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.alec.pl
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to