Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib-storage/index/maildir/maildir-uidlist.c @ 9612:c4b2e4f4ff79 HEAD
maildir: If uidlist isn't read, don't mark its UIDs as being known when saving.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Sep 2010 16:23:03 +0100 |
parents | 7c3b7c3a86ff |
children | d2da54c3d829 |
comparison
equal
deleted
inserted
replaced
9611:63857c491143 | 9612:c4b2e4f4ff79 |
---|---|
1794 i_assert(ctx->uidlist->next_uid < (uint32_t)-1); | 1794 i_assert(ctx->uidlist->next_uid < (uint32_t)-1); |
1795 recs[dest]->uid = ctx->uidlist->next_uid++; | 1795 recs[dest]->uid = ctx->uidlist->next_uid++; |
1796 recs[dest]->flags &= ~MAILDIR_UIDLIST_REC_FLAG_MOVED; | 1796 recs[dest]->flags &= ~MAILDIR_UIDLIST_REC_FLAG_MOVED; |
1797 } | 1797 } |
1798 | 1798 |
1799 if (ctx->uidlist->locked_refresh) | 1799 if (ctx->uidlist->locked_refresh && ctx->uidlist->initial_read) |
1800 ctx->uidlist->last_seen_uid = ctx->uidlist->next_uid-1; | 1800 ctx->uidlist->last_seen_uid = ctx->uidlist->next_uid-1; |
1801 | 1801 |
1802 ctx->new_files_count = 0; | 1802 ctx->new_files_count = 0; |
1803 ctx->first_nouid_pos = (unsigned int)-1; | 1803 ctx->first_nouid_pos = (unsigned int)-1; |
1804 ctx->uidlist->change_counter++; | 1804 ctx->uidlist->change_counter++; |