Uncategorized

Mautic: Bounces Process only bounced today

Go to Mailbox.php

 

public function searchMailbox($criteria = self::CRITERIA_ALL)
{
$criteria = ‘SINCE “‘.date(“Y-m-d”).'”‘;
#$criteria = ‘ALL’;
if (preg_match(‘/’.self::CRITERIA_UID.’ ((\d+):(\d+|\*))/’, $criteria, $matches)) {
// PHP imap_search does not support UID n:* so use imap_fetch_overview instead
$messages = imap_fetch_overview($this->getImapStream(), $matches[1], FT_UID);

$mailIds = [];
foreach ($messages as $message) {
$mailIds[] = $message->uid;
}
} else {
$mailIds = imap_search($this->getImapStream(), $criteria, SE_UID);
}

 

edit:

$criteria = ‘ALL’;

to

$criteria = ‘SINCE “‘.date(“Y-m-d”).'”‘;

Leave a Reply

Your email address will not be published. Required fields are marked *