diff --git a/externals/mimemailparser/MimeMailParser.class.php b/externals/mimemailparser/MimeMailParser.class.php --- a/externals/mimemailparser/MimeMailParser.class.php +++ b/externals/mimemailparser/MimeMailParser.class.php @@ -2,6 +2,7 @@ require_once('attachment.class.php'); +#[\AllowDynamicProperties] /** * Fast Mime Mail parser Class using PHP's MailParse Extension * @author gabe@fijiwebdesign.com @@ -31,6 +32,11 @@ */ public $attachment_streams; + /** + * Parts of an email + */ + private $parts = []; + /** * Inialize some stuff * @return @@ -134,7 +140,6 @@ */ private function parse() { $structure = mailparse_msg_get_structure($this->resource); - $this->parts = array(); foreach($structure as $part_id) { $part = mailparse_msg_get_part($this->resource, $part_id); $this->parts[$part_id] = mailparse_msg_get_part_data($part);