Skip to content

Commit

Permalink
Attempt to fix Bug: 15091
Browse files Browse the repository at this point in the history
Don't update state if IMAP server goes away. Mark it as
a temporary error instead.
  • Loading branch information
mrubinsk committed Mar 24, 2022
1 parent ea5a15f commit a09266d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -1045,6 +1045,10 @@ protected function _getMailMessages(
array('ids' => new Horde_Imap_Client_Ids($uids), 'exists' => true)
);
} catch (Horde_Imap_Client_Exception $e) {
if ($e->code == Horde_Imap_Client_Exception::DISCONNECT) {
$this->_logger->err("Connection to IMAP server lost");
throw new Horde_ActiveSync_Exception_TemporaryFailure($e);
}
$this->_logger->err(sprintf(
'Unable to fetch message: %s',
$e->getMessage())
Expand Down

0 comments on commit a09266d

Please sign in to comment.