mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
try to figure out generic error: IMAP error reported by server on structure retrieval
This commit is contained in:
parent
437343bc0f
commit
c59439f1ef
@ -1014,6 +1014,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
|
|||||||
public function GetMessage($folderid, $id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0)
|
public function GetMessage($folderid, $id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0)
|
||||||
{
|
{
|
||||||
//$this->debugLevel=4;
|
//$this->debugLevel=4;
|
||||||
|
if (!isset($this->mail)) $this->mail = mail_bo::getInstance(false,self::$profileID);
|
||||||
debugLog(__METHOD__.__LINE__.' FolderID:'.$folderid.' ID:'.$id.' TruncSize:'.$truncsize.' Bodypreference: '.array2string($bodypreference));
|
debugLog(__METHOD__.__LINE__.' FolderID:'.$folderid.' ID:'.$id.' TruncSize:'.$truncsize.' Bodypreference: '.array2string($bodypreference));
|
||||||
$stat = $this->StatMessage($folderid, $id);
|
$stat = $this->StatMessage($folderid, $id);
|
||||||
if ($this->debugLevel>3) debugLog(__METHOD__.__LINE__.array2string($stat));
|
if ($this->debugLevel>3) debugLog(__METHOD__.__LINE__.array2string($stat));
|
||||||
@ -1026,7 +1027,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
|
|||||||
$headers = $this->mail->getMessageHeader($id,'',true,true);
|
$headers = $this->mail->getMessageHeader($id,'',true,true);
|
||||||
if (empty($headers))
|
if (empty($headers))
|
||||||
{
|
{
|
||||||
error_log(__METHOD__.__LINE__.' Retrieval of Headers Failed! for .'.$this->account.' ServerID:'.self::$profileID.'FolderID:'.$folderid.' ID:'.$id.' TruncSize:'.$truncsize.' Bodypreference: '.array2string($bodypreference).' Stat was:'.array2string($stat));
|
error_log(__METHOD__.__LINE__.' Retrieval of Headers Failed! for .'.$this->account.'/'.$GLOBALS['egw_info']['user']['account_lid'].' ServerID:'.self::$profileID.'FolderID:'.$folderid.' ID:'.$id.' TruncSize:'.$truncsize.' Bodypreference: '.array2string($bodypreference).' Stat was:'.array2string($stat));
|
||||||
return $output;//empty object
|
return $output;//empty object
|
||||||
}
|
}
|
||||||
//$rawHeaders = $this->mail->getMessageRawHeader($id);
|
//$rawHeaders = $this->mail->getMessageRawHeader($id);
|
||||||
|
@ -4358,7 +4358,7 @@ class mail_bo
|
|||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
error_log(__METHOD__.__LINE__.' Could not fetch structure on mail:'.$_uid.' Serverprofile->'.$this->icServer->ImapServerId.' Message:'.$e->getMessage());
|
error_log(__METHOD__.__LINE__.' Could not fetch structure on mail:'.$_uid.' Serverprofile->'.$this->icServer->ImapServerId.' Message:'.$e->getMessage().' Stack:'.function_backtrace());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user