forked from extern/egroupware
Try to stripe extra quoting from personal part of email address
This commit is contained in:
parent
98644a80d6
commit
e4d33243a7
@ -7314,6 +7314,18 @@ class Mail
|
|||||||
$adr->mailbox = str_replace("'","",$adr->mailbox);
|
$adr->mailbox = str_replace("'","",$adr->mailbox);
|
||||||
$adr->host = str_replace("'","",$adr->host);
|
$adr->host = str_replace("'","",$adr->host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// try to strip extra quoting or slashes from personal part
|
||||||
|
$adr->personal = stripslashes($adr->personal);
|
||||||
|
if ($adr->personal && (stripos($adr->personal, '"') == 0 &&
|
||||||
|
substr($adr->personal, -1) == '"') ||
|
||||||
|
(substr($adr->personal, -2) == '""'))
|
||||||
|
{
|
||||||
|
$adr->personal = str_replace('"', "", $adr->personal);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// no mailbox or host part as 'Xr\xc3\xa4hlyz, User <mailboxpart1.mailboxpart2@yourhost.com>' is parsed as 2 addresses separated by ','
|
// no mailbox or host part as 'Xr\xc3\xa4hlyz, User <mailboxpart1.mailboxpart2@yourhost.com>' is parsed as 2 addresses separated by ','
|
||||||
//#'Xr\xc3\xa4hlyz, User <mailboxpart1.mailboxpart2@yourhost.com>'
|
//#'Xr\xc3\xa4hlyz, User <mailboxpart1.mailboxpart2@yourhost.com>'
|
||||||
//#Horde_Mail_Rfc822_List Object([_data:protected] => Array(
|
//#Horde_Mail_Rfc822_List Object([_data:protected] => Array(
|
||||||
|
Loading…
Reference in New Issue
Block a user