Skip to content

Commit

Permalink
Added _folder parameter to getTnefAttachments function
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 authored and ralfbecker committed Feb 22, 2019
1 parent 6ae2bd4 commit 1920814
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/src/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -5915,12 +5915,13 @@ public static function getAttachmentAccount($acc_id, $_mailbox, $_uid, $_partID,
* @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)
Expand Down

0 comments on commit 1920814

Please sign in to comment.