Skip to content

Commit

Permalink
Ensure we don't attempt to fetch the same change twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 18, 2015
1 parent b6e2e9c commit f11823d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ protected function _buildModSeqChanges(
// Get custom flags to use as categories.
$msgFlags = $this->_getMsgFlags();

// Filter out any changes that we already know about.
$fetch_ret = array_diff_key(
$fetch_ret, array_flip($changes)
);

foreach ($fetch_ret as $uid => $data) {
if ($options['sincedate']) {
$since = new Horde_Date($options['sincedate']);
Expand Down

0 comments on commit f11823d

Please sign in to comment.