Skip to content

Commit

Permalink
imapc: Avoid resending duplicate FETCH when reconnecting during the i…
Browse files Browse the repository at this point in the history
…nitial sync
  • Loading branch information
sirainen authored and GitLab committed May 19, 2017
1 parent bc3309d commit f487197
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib-storage/index/imapc/imapc-sync.c
Expand Up @@ -512,6 +512,12 @@ void imapc_sync_mailbox_reopened(struct imapc_mailbox *mbox)

i_assert(mbox->syncing);

if (!mbox->initial_sync_done) {
/* the same sync commands are automatically already retried by
lib-imap-client. don't duplicate them here. */
return;
}

/* we got disconnected while syncing. need to
re-fetch everything */
mbox->sync_next_lseq = 1;
Expand Down

0 comments on commit f487197

Please sign in to comment.