Author: leithoff
New Revision: 33744
URL: http://www.egroupware.org/viewvc/egroupware?rev=33744&view=rev
Log:
improve of messageuid detection, when appending messages, as sometimes (when server only replies OK/True on appending Messages to a mailbox) you cannot trust the nextuid iformation by folderstatus (at least not with dbmail)
Modified:
trunk/felamimail/inc/class.bofelamimail.inc.php
Modified: trunk/felamimail/inc/class.bofelamimail.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/felamimail/inc/class.bofelamimail.inc.php?rev=33744&r1=33743&r2=33744&view=diff
— trunk/felamimail/inc/class.bofelamimail.inc.php (original)
+++ trunk/felamimail/inc/class.bofelamimail.inc.php Mon Feb 7 16:55:08 2011
@@ -276,6 +276,15 @@
if (self::$debug) error_log(“Could not append Message:”.print_r($messageid->message,true));
throw new egw_exception_wrong_userinput(lang(“Could not append Message:”.array2string($messageid->message)));
//return false;
-
} -
if ($messageid === true) // try to figure out the message uid -
{ -
$list = $this->getHeaders($_folderName, $_startMessage=1, $_numberOfMessages=1, $_sort=0, $_reverse=true, $_filter=array()); -
if ($list) -
{ -
if (self::$debug) error_log(__METHOD__.__LINE__.' MessageUid:'.$messageid.' but found:'.array2string($list)); -
$messageid = $list['header'][0]['uid']; -
} } return $messageid; }
@@ -2518,13 +2527,13 @@
static function getFileNameFromStructure(&$structure)
{
if(isset($structure->parameters[‘NAME’])) {
-
return self::decode_header($structure->parameters['NAME']);
-
return rawurldecode(self::decode_header($structure->parameters['NAME'])); } elseif(isset($structure->dparameters['FILENAME'])) {
-
return self::decode_header($structure->dparameters['FILENAME']);
-
return rawurldecode(self::decode_header($structure->dparameters['FILENAME'])); } elseif(isset($structure->dparameters['FILENAME*'])) {
-
return self::decode_header($structure->dparameters['FILENAME*']);
-
return rawurldecode(self::decode_header($structure->dparameters['FILENAME*'])); } elseif ( isset($structure->filename) && !empty($structure->filename) && $structure->filename != 'NIL') {
-
return self::decode_header($structure->filename);
-
return rawurldecode(self::decode_header($structure->filename)); } else { return lang("unknown").($structure->subType ? ".".$structure->subType : ""); }
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server’s
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs