Merged in feature/PMCORE-2371 (pull request #7559)

PMCORE-2371 ABE response was not added on the taskscheduler log

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-11-17 21:28:36 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -145,6 +145,7 @@ class ResponseReader
$emailSetup['MESS_ACCOUNT'],
$this->decryptPassword($emailSetup)
);
Log::channel(':' . $this->channel)->debug("Open mailbox", Bootstrap::context($emailSetup));
// Read all messages into an array
$mailsIds = $mailbox->searchMailbox('UNSEEN');
@@ -153,6 +154,7 @@ class ResponseReader
foreach ($mailsIds as $key => $mailId) {
/** @var IncomingMail $mail */
$mail = $mailbox->getMail($mailId, false);
Log::channel(':' . $this->channel)->debug("Get mail", Bootstrap::context(['mailId' => $mailId]));
if (!empty($mail->textPlain)) {
preg_match("/{(.*)}/", $mail->textPlain, $matches);
if ($matches) {