mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-14 14:06:46 +02:00
try to catch errors on structure retrieval
This commit is contained in:
parent
ff29574173
commit
38dcee204a
@ -4331,7 +4331,8 @@ class mail_bo
|
|||||||
}
|
}
|
||||||
$uidsToFetch = new Horde_Imap_Client_Ids();
|
$uidsToFetch = new Horde_Imap_Client_Ids();
|
||||||
$uidsToFetch->add((array)$_uid);
|
$uidsToFetch->add((array)$_uid);
|
||||||
|
try
|
||||||
|
{
|
||||||
$_fquery = new Horde_Imap_Client_Fetch_Query();
|
$_fquery = new Horde_Imap_Client_Fetch_Query();
|
||||||
// not sure why Klaus add these, seem not necessary
|
// not sure why Klaus add these, seem not necessary
|
||||||
// $fquery->envelope();
|
// $fquery->envelope();
|
||||||
@ -4345,6 +4346,12 @@ class mail_bo
|
|||||||
|
|
||||||
return $mail->getStructure();
|
return $mail->getStructure();
|
||||||
}
|
}
|
||||||
|
catch (Exception $e)
|
||||||
|
{
|
||||||
|
error_log(__METHOD__.__LINE__.' Could not fetch structure on mail:'.$_uid.' Serverprofile->'.$this->icServer->ImapServerId.' Message:'.$e->getMessage());
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse the structure for attachments
|
* Parse the structure for attachments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user