Author: leithoff
New Revision: 55021
URL: http://svn.stylite.de/viewvc/egroupware?rev=55021&view=rev
Log:
improve parseRawMessageIntoMailObject by making sure there is SOME string to parse into headers, if there is any
Modified:
branches/14.2/emailadmin/inc/class.emailadmin_imapbase.inc.php
— branches/14.2/emailadmin/inc/class.emailadmin_imapbase.inc.php (original)
+++ branches/14.2/emailadmin/inc/class.emailadmin_imapbase.inc.php Tue Feb 16 13:16:55 2016
@@ -6628,8 +6628,9 @@
$start = is_string($message) ? substr($message, 0, 8192) :
(fseek($message, 0, SEEK_SET) == -1 ? ‘’ : fread($message, 8192));
-
$headers = Horde_Mime_Headers::parseHeaders(substr($start, 0,
-
strpos($start, Horde_Mime_Part::RFC_EOL.Horde_Mime_Part::RFC_EOL)));
-
$length = strpos($start, Horde_Mime_Part::RFC_EOL.Horde_Mime_Part::RFC_EOL);
-
if ($length===false) $length = strlen($start);
-
$headers = Horde_Mime_Headers::parseHeaders(substr($start, 0,$length));
foreach($headers->toArray(array('nowrap' => true)) as $header => $value)
{
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