Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
philippejadin committed Oct 15, 2023
1 parent b731cd3 commit 604d3ef
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/Console/Commands/CheckMailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,21 @@ function extractRecipientsFromMessage(ImapMessage $message)
foreach ($message->getTo() as $to) {
$recipients[] = $to->getAddress();
}

foreach ($message->getCc() as $to) {
$recipients[] = $to->getAddress();
}

foreach ($message->getHeaders()->get('in-reply-to') as $to) {
$recipients[] = $to->getAddress();
if (is_array($message->getHeaders()->get('in-reply-to'))) {
foreach ($message->getHeaders()->get('in-reply-to') as $to) {
$recipients[] = $to->getAddress();
}
}

foreach ($message->getHeaders()->get('references') as $to) {
$recipients[] = $to->getAddress();
if (is_array($message->getHeaders()->get('references'))) {
foreach ($message->getHeaders()->get('references') as $to) {
$recipients[] = $to->getAddress();
}
}


Expand Down

0 comments on commit 604d3ef

Please sign in to comment.