Skip to content

Commit

Permalink
This is a >= comparison, so use the next highest MODSEQ value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jun 11, 2015
1 parent cc7f3fd commit 5a52feb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Expand Up @@ -347,7 +347,10 @@ public function getMessageChanges(

// Catch all *changes* since the provided MODSEQ value.
$query = new Horde_Imap_Client_Search_Query();
$query->modseq($folder->modseq());
// $imap->search uses a >= comparison for MODSEQ, so we must
// increment by one so we don't continuously receive the same change
// set.
$query->modseq($folder->modseq() + 1);
if (!empty($options['sincedate'])) {
$query->dateSearch(
new Horde_Date($options['sincedate']),
Expand Down

0 comments on commit 5a52feb

Please sign in to comment.