Take all addresses in the mail header when integrating mail to another app, e.g. Calendar.

This commit is contained in:
Hadi Nategh 2021-08-13 10:52:39 +02:00
parent a6b6b2052e
commit 4a4de6eba6

View File

@ -326,6 +326,11 @@ class mail_integration {
}
}
//consider all addresses in the header
foreach (['TO','CC','BCC', 'FROM'] as $h)
{
$mailcontent['mailaddress'] .= ','.$headers[$h];
}
// Convert addresses to email and personal
$addresses = imap_rfc822_parse_adrlist($mailcontent['mailaddress'],'');
foreach ($addresses as $address)