new_changed_r, cur_changed_r) < 0)
return -1;
- if (*new_changed_r || *cur_changed_r)
- return 1;
-
if (have_recent_messages(ctx)) {
if ((mbox->ibox.box.flags & MAILBOX_FLAG_KEEP_RECENT) == 0) {
*new_changed_r = TRUE;
- return 1;
} else if (*new_changed_r) {
/* we have some recent messages and new/ has changed.
if messages had been externally deleted from new/,
we need to get them out of index. this requires that
we make sure they weren't just moved to cur/. */
*cur_changed_r = TRUE;
- return 1;
}
}
+ if (*new_changed_r || *cur_changed_r)
+ return 1;
+
if ((mbox->ibox.box.flags & MAILBOX_FLAG_KEEP_RECENT) == 0)
flags |= MAIL_INDEX_SYNC_FLAG_DROP_RECENT;