mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Merge pull request #55 from asig2016/tnef_atachement_folder_parameter
Add _folder parameter to getTnefAttachments function
This commit is contained in:
commit
4dae7288cf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user