mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Do not fill reply-to if the FROM address is the same as the reply-to
This commit is contained in:
parent
10fa9cdd47
commit
037ce6d9fe
@ -1746,10 +1746,11 @@ class mail_compose
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$fromAddr = Mail::parseAddressList($addHeadInfo['FROM'])[0];
|
||||||
foreach((array)$headers['REPLY-TO'] as $val) {
|
foreach((array)$headers['REPLY-TO'] as $val) {
|
||||||
$rfcAddr=Mail::parseAddressList($val);
|
$rfcAddr=Mail::parseAddressList($val);
|
||||||
$_rfcAddr = $rfcAddr[0];
|
$_rfcAddr = $rfcAddr[0];
|
||||||
if (!$_rfcAddr->valid) continue;
|
if (!$_rfcAddr->valid || ($_rfcAddr->mailbox == $fromAddr->mailbox && $_rfcAddr->host == $fromAddr->host)) continue;
|
||||||
if($_rfcAddr->mailbox == 'undisclosed-recipients' || (empty($_rfcAddr->mailbox) && empty($_rfcAddr->host)) ) {
|
if($_rfcAddr->mailbox == 'undisclosed-recipients' || (empty($_rfcAddr->mailbox) && empty($_rfcAddr->host)) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user