|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-14 19:37 UTC] iliaa@php.net
[2004-01-14 19:47 UTC] lars at kneschke dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 22:00:01 2025 UTC |
Description: ------------ imap_rfc822_parse_adrlist fails when it should decode emailadresses using following format test@test.de <test@test.de> It gets confused by the first @ . Changing the string to test\@test.de <test@test.de> makes it working. Reproduce code: --------------- $testSting = "test1@test.de <test2@test.de>"; print "<pre>"; print_r(imap_rfc822_parse_adrlist($testString,'')); print "</pre>"; Expected result: ---------------- Array ( [0] => stdClass Object ( [mailbox] => test2 [host] => lists.net [personal] => test1@lists.net ) ) Actual result: -------------- Array ( [0] => stdClass Object ( [mailbox] => test1 [host] => lists.net ) [1] => stdClass Object ( [mailbox] => UNEXPECTED_DATA_AFTER_ADDRESS [host] => .SYNTAX-ERROR. ) )