Import/Core_email.php
authorAlan Knowles <alan@roojs.com>
Mon, 2 Mar 2015 06:45:17 +0000 (14:45 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 2 Mar 2015 06:45:17 +0000 (14:45 +0800)
Import/Core_email.php

index 56b679e..d03c5a6 100644 (file)
@@ -52,6 +52,10 @@ class Pman_Core_Import_Core_email extends Pman
         
         $decoder = new Mail_mimeDecode($mailtext);
         $parts = $decoder->getSendArray();
+        if (is_a($parts,'PEAR_Error')) {
+            echo $parts->toString();
+            exit;
+        }
         
         $headers = $parts[1];
         $from = new Mail_RFC822();