Non-multipart body is now an ezcMailFile object stored in tmp directory.
authormark burdett <mfburdett@gmail.com>
Mon, 11 Mar 2019 22:04:23 +0000 (15:04 -0700)
committermark burdett <mfburdett@gmail.com>
Mon, 11 Mar 2019 22:04:23 +0000 (15:04 -0700)
CRM/Utils/Mail/EmailProcessor.php

index 5f609153b41474333047dfd95ec02fcee48988d7..3c9842d9e247f2525dbf78451116ac61f8d38db9 100644 (file)
@@ -290,6 +290,9 @@ class CRM_Utils_Mail_EmailProcessor {
               elseif ($mail->body instanceof ezcMailMultipart) {
                 $text = self::getTextFromMultipart($mail->body);
               }
+              elseif ($mail->body instanceof ezcMailFile) {
+                $text = file_get_contents($mail->body->__get('fileName'));
+              }
 
               if (
                 empty($text) &&