diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php index 7bddd9ef00d6eaf90f10bc0e55b2bd70fa30e3c5..0958e8be1015065fbac6b369c474a1bb251661b8 100644 --- a/include/class.mailfetch.php +++ b/include/class.mailfetch.php @@ -728,11 +728,18 @@ class MailFetcher { return true; } - //TODO: Log error.. + // Log an error to the system logs + $mailbox = Email::lookup($vars['emailId']); + $ost->logError('Mail Processing Exception', sprintf( + "Mailbox: %s\nError(s): %s", + $mailbox->getEmail(), + print_r($errors, true) + ), false); + + // Indicate failure of mail processing return null; } - return $ticket; }