* 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 18e3fdb83e
commit 95ba184a25

View File

@ -1089,6 +1089,10 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
($headers['priority'] < 3 ? 2 : 1) ;
$output->datereceived = $this->mail->_strtotime($headers['date'], 'ts', false); // false = servertime
$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']
$output->from = $headers['sender_address'];
if (!empty($headers['cc_addresses'])) $output->cc = $headers['cc_addresses'];