Skip to content

Commit

Permalink
Explain the need for this.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 3, 2016
1 parent bf0ea94 commit 975730c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -355,7 +355,14 @@ public function getMessageChanges(
$folder->checkValidity($status);
}


// If IMAP server reports invalid MODSEQ, this can lead to the client
// no longer ever able to detect changes therefore never receiving new
// email even if the value is restored at some point in the future.
//
// This can happen, e.g., if the IMAP server index files are lost or
// otherwise corrupted. Normally this would be handled as a loss of
// server state and handled by a complete resync, but a majority of
// EAS clients do not properly handle the status codes that report this.
if ($modseq_corrupted = $folder->modseq() > $current_modseq) {
$this->_logger->err(sprintf(
'[%s] IMAP Server error: Current HIGHESTMODSEQ is lower than previously reported.',
Expand Down

0 comments on commit 975730c

Please sign in to comment.