ID: 8481 Updated by: chagenbu Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: IMAP related PHP Version: 4.0.4 Assigned To: Comments: This is the behavior of the underlying c-client function. If you want looser parsing, see PEAR's Mail_RFC822 class, which among other things has an option to turn validation off. Previous Comments: --------------------------------------------------------------------------- [2000-12-29 12:44:41] [EMAIL PROTECTED] Imap_rfc822_parse_adrlist is too strict: if a double ,, is present in addresslist, then the parsing fails and stops (and gives various SYNTAX-ERROR/INVALID HOST) This is really annoying as many users type double ,, or even , , (a comma, a space, a comma) causing most of recipients to be dropped if Imap_rfc822_parse_adrlist is used. Example: imap_rfc822_parse_adrlist("smith,jeff,paul","foobar.com") WORKS -BUT- imap_rfc822_parse_adrlist("smith,,jeff,paul","foobar.com") DOES NOT WORK: only "smith" is extracted, BUT jeff and paul aren't Workaround: while exploding recipient list, just IGNORE empty recipient as if they didn't exist (and of course continue parsing) --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8481&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]