1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2025-01-02 12:09:04 +01:00

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 54e5826fc7
commit 3ea863c5bc

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)