From 5a4c73d9b8b791e07a33390a8934205c8d642acb Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Tue, 23 May 2023 11:16:16 +0200 Subject: [PATCH] ticket / mailclient added dump information on mail fetch error --- classes/Components/MailClient/Client/ImapMailClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Components/MailClient/Client/ImapMailClient.php b/classes/Components/MailClient/Client/ImapMailClient.php index f86639ee..73b9c160 100644 --- a/classes/Components/MailClient/Client/ImapMailClient.php +++ b/classes/Components/MailClient/Client/ImapMailClient.php @@ -128,7 +128,7 @@ final class ImapMailClient implements MailClientInterface $message = $this->imap->getMessage($msgNumber); } catch (Exception $e) { throw new MessageNotFoundException( - sprintf('Message number %s not found.', $msgNumber) + sprintf("Message number %s could not be fetched.\n\r%s", $msgNumber,print_r($e,true)) ); }