Skip to content

Commit

Permalink
Fix detecting initial prime.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 5, 2015
1 parent 11e0173 commit 9627087
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 @@ -414,7 +414,10 @@ public function getMessageChanges(
$mbox,
$query,
array('results' => array(Horde_Imap_Client::SEARCH_RESULTS_MATCH)));
if ($modseq && $folder->modseq() > 0 && $search_ret['count']) {
if ($modseq && !$folder->haveInitialSync) {
$this->_logger->info(sprintf(
'[%s] Priming IMAP folder object.',
$this->_procid));
$folder->primeFolder($search_ret['match']->ids);
} elseif (count($search_ret['match']->ids)) {
$query = new Horde_Imap_Client_Fetch_Query();
Expand Down

0 comments on commit 9627087

Please sign in to comment.