Bug #8481 Updated: imap_rfc822_parse_adrlist is too STRICT
| From: | chagenbu@php.net | Date: | Thu, 03 May 2001 19:23:07 +0000 |
| Subject: | Bug #8481 Updated: imap_rfc822_parse_adrlist is too STRICT | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53686@lists.php.net to get a copy of this message | ||
ID: 8481
Updated by: chagenbu
Reported By: rxdev@serianet.com
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] rxdev@serianet.com
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