From 1ac21dca7719e59fe05a64157df7d08b7c5c29d8 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Fri, 29 Jul 2016 17:43:45 -0400 Subject: [PATCH] Fix e-notice on CRM-19111 --- CRM/Utils/Mail/Incoming.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Mail/Incoming.php b/CRM/Utils/Mail/Incoming.php index c1c8ad8cca..424d998852 100644 --- a/CRM/Utils/Mail/Incoming.php +++ b/CRM/Utils/Mail/Incoming.php @@ -69,7 +69,7 @@ class CRM_Utils_Mail_Incoming { return self::formatMail($part, $attachments); } - if ($part instanceof ezcMailText || !$part) { + if ($part instanceof ezcMailText) { return self::formatMailText($part, $attachments); } @@ -85,6 +85,11 @@ class CRM_Utils_Mail_Incoming { return self::formatMailMultipart($part, $attachments); } + // CRM-19111 - Handle blank emails with a subject. + if (!$part) { + return NULL; + } + CRM_Core_Error::fatal(ts("No clue about the %1", array(1 => get_class($part)))); } -- 2.25.1