From 1920814067f472e6fe4875b3a248379d8ae066fc Mon Sep 17 00:00:00 2001 From: Alexandros Sigalas Date: Fri, 22 Feb 2019 09:01:59 +0200 Subject: [PATCH] Added _folder parameter to getTnefAttachments function --- api/src/Mail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 5d17311371..0c5d19b091 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -5915,12 +5915,13 @@ class Mail * @param int $_uid the uid of the message * @param string $_partID the id of the part, which holds the attachment * @param boolean $_stream =false flag to indicate if the attachment is to be fetched or returned as filepointer + * @param string $_folder =null folder to use if not current folder * * @return array returns an array of all resolved embeded attachments from winmail.dat */ - function getTnefAttachments ($_uid, $_partID, $_stream=false) + function getTnefAttachments ($_uid, $_partID, $_stream=false, $_folder=null) { - $tnef_data = $this->getAttachment($_uid, $_partID,0,false); + $tnef_data = $this->getAttachment($_uid, $_partID,0,false, false , $_folder); $tnef_parts = $this->tnef_decoder($tnef_data['attachment']); $attachments = array(); if ($tnef_parts)