diff --git a/emailadmin/inc/class.emailadmin_imapbase.inc.php b/emailadmin/inc/class.emailadmin_imapbase.inc.php index 7f84052da2..08b76b3a72 100644 --- a/emailadmin/inc/class.emailadmin_imapbase.inc.php +++ b/emailadmin/inc/class.emailadmin_imapbase.inc.php @@ -5296,7 +5296,7 @@ class emailadmin_imapbase } } //error_log(array2string($bodyParts)); - $attachments = $includeAttachments?$mailClass->getMessageAttachments($uid,$partid):array(); + $attachments = $includeAttachments?$mailClass->getMessageAttachments($uid,$partid,null,true,false,true,$mailbox):array(); if ($mailClass->isSentFolder($mailbox)) $mailaddress = $headers['TO']; elseif (isset($headers['FROM'])) $mailaddress = $headers['FROM']; @@ -5320,7 +5320,7 @@ class emailadmin_imapbase //_debug_array($mailClass->getMessageHeader($uid, $attachment['partID'])); //_debug_array($mailClass->getMessageBody($uid,'', $attachment['partID'])); //_debug_array($mailClass->getMessageAttachments($uid, $attachment['partID'])); - $mailcontent = self::get_mailcontent($mailClass,$uid,$attachment['partID']); + $mailcontent = self::get_mailcontent($mailClass,$uid,$attachment['partID'],$mailbox); $headdata =''; if ($mailcontent['headers']) {