Use tnef folder parameter set by commit 1920814067

This commit is contained in:
Hadi Nategh 2019-02-22 11:00:47 +01:00
parent 1920814067
commit 58ad1d6fe1

View File

@ -2987,7 +2987,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
// retrieve all embedded attachments at once // retrieve all embedded attachments at once
// avoids to fetch heavy winmail.dat content // avoids to fetch heavy winmail.dat content
// for each file. // for each file.
$attachments = $this->mail_bo->getTnefAttachments($p['uid'],$p['part']); $attachments = $this->mail_bo->getTnefAttachments($p['uid'],$p['part'], false, $p['mailbox']);
} }
foreach((array)$ids as $id) foreach((array)$ids as $id)
@ -3107,7 +3107,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
$this->mail_bo->reopen($mailbox); $this->mail_bo->reopen($mailbox);
if ($attachments[0]['is_winmail'] && $attachments[0]['is_winmail']!='null') if ($attachments[0]['is_winmail'] && $attachments[0]['is_winmail']!='null')
{ {
$tnefAttachments = $this->mail_bo->getTnefAttachments($message_id, $attachments[0]['partID'],true); $tnefAttachments = $this->mail_bo->getTnefAttachments($message_id, $attachments[0]['partID'],true, $mailbox);
} }
foreach($attachments as $file) foreach($attachments as $file)
{ {