mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Do not fill reply-to if the FROM address is the same as the reply-to
This commit is contained in:
parent
0ea9d513e5
commit
b0feb5e965
@ -1753,10 +1753,11 @@ class mail_compose
|
||||
}
|
||||
}
|
||||
|
||||
$fromAddr = Mail::parseAddressList($addHeadInfo['FROM'])[0];
|
||||
foreach((array)$headers['REPLY-TO'] as $val) {
|
||||
$rfcAddr=Mail::parseAddressList($val);
|
||||
$_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)) ) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user