__again:
seq++;
- if ((uflags & MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) {
- /* partial syncing */
- continue;
- }
if (seq > hdr->messages_count) {
if (uid < hdr->next_uid) {
the difference between this and the later
check is that this one happens when messages
are expunged from the end */
+ if ((uflags &
+ MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) {
+ /* partial syncing */
+ continue;
+ }
if ((uflags &
MAILDIR_UIDLIST_REC_FLAG_RACING) != 0) {
mail_storage_set_critical(
committed changes to index. so, this message
shouldn't actually exist. mark it racy and check
in next sync. */
+ if ((uflags &
+ MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) {
+ /* partial syncing */
+ seq--;
+ continue;
+ }
if ((uflags & MAILDIR_UIDLIST_REC_FLAG_RACING) != 0) {
mail_storage_set_critical(ibox->box.storage,
"Maildir %s sync: UID inserted in the "
continue;
}
+ if ((uflags & MAILDIR_UIDLIST_REC_FLAG_NONSYNCED) != 0) {
+ /* partial syncing */
+ continue;
+ }
+
if ((rec->flags & MAIL_INDEX_MAIL_FLAG_DIRTY) != 0) {
/* we haven't been able to update maildir with this
record's flag changes. don't sync them. */