From 43c015694c2ae688e229a41a5e9b0325981903f0 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 16 Oct 2014 15:19:26 +0000 Subject: [PATCH] supply mailbox param for get_mailcontent --- emailadmin/inc/class.emailadmin_imapbase.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']) {