* eSync: only first to address was shown / send to client

This commit is contained in:
ralf 2024-03-04 19:37:28 +02:00
parent 00c36d6775
commit 98cf3415ca

View File

@ -1089,6 +1089,10 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
($headers['priority'] < 3 ? 2 : 1) ; ($headers['priority'] < 3 ? 2 : 1) ;
$output->datereceived = $this->mail->_strtotime($headers['date'], 'ts', false); // false = servertime $output->datereceived = $this->mail->_strtotime($headers['date'], 'ts', false); // false = servertime
$output->to = $headers['to_address'] ?? null; $output->to = $headers['to_address'] ?? null;
if (!empty($headers['additional_to_addresses']))
{
$output->to = array_merge((array)$output->to, $headers['additional_to_addresses']);
}
if (!empty($headers['to'])) $output->displayto = $headers['to_address']; //$headers['FETCHED_HEADER']['to_name'] if (!empty($headers['to'])) $output->displayto = $headers['to_address']; //$headers['FETCHED_HEADER']['to_name']
$output->from = $headers['sender_address']; $output->from = $headers['sender_address'];
if (!empty($headers['cc_addresses'])) $output->cc = $headers['cc_addresses']; if (!empty($headers['cc_addresses'])) $output->cc = $headers['cc_addresses'];