Author: ralfbecker
New Revision: 55238
URL: http://svn.stylite.de/viewvc/egroupware?rev=55238&view=rev
Log:
TNEF decoder requires a string no stream
Modified:
trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php
— trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php (original)
+++ trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php Thu Mar 3 16:33:10 2016
@@ -5626,15 +5626,17 @@
if ($ext && stripos($filename,’.’)===false && stripos($filename,$ext)===false) $filename = trim($filename).’.’.$ext;
if (!$part)
{
-
error_log(__METHOD__.__LINE__.'Error: Could not fetch attachment for:'." Uid:$_uid, PartId:$_partID, WinMailNr:$_winmail_nr in $_folder:".array2string(function_backtrace()));
-
error_log(__METHOD__.__LINE__.'# Fetched StructureMime:'.$structure_mime.' with Filename:'.$filename);
-
throw new egw_exception_wrong_parameter("Error: Could not fetch attachment for Uid=$_uid, PartId=$_partID, WinMailNr=$_winmail_nr, folder=$_folder");
}
$attachmentData = array(
'type' => $structure_mime,
'filename' => $filename,
//'attachment' => $part->getContents(array('stream'=>$_stream))
-
'attachment' => ($part?$part->getContents(array('stream'=>$_stream)):'Error: Could not fetch attachment for:'." Uid:$_uid, PartId:$_partID, WinMailNr:$_winmail_nr in $_folder:".array2string(function_backtrace()))
-
);
-
'attachment' => $part->getContents(array(
-
// tnef_decode needs strings not a stream
-
'stream' => $_stream && !($filename == 'winmail.dat' && $_winmail_nr)
-
)),
-
);
// try guessing the mimetype, if we get the application/octet-stream
if (strtolower($attachmentData['type']) == 'application/octet-stream') $attachmentData['type'] = mime_magic::filename2mime($attachmentData['filename']);
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs