opening them. Without this it's possible that entries are appended to old
format uidlist in the new format.
--HG--
branch : HEAD
}
mhdr = &uidlist->mbox->maildir_hdr;
+ if (mhdr->uidlist_mtime == 0) {
+ if (!uidlist->initial_read)
+ (void)maildir_uidlist_refresh(uidlist);
+ if (uidlist->version != UIDLIST_VERSION) {
+ /* upgrading from older verson. don't update the
+ uidlist times until it uses the new format */
+ uidlist->recreate = TRUE;
+ return;
+ }
+ }
mhdr->uidlist_mtime = st->st_mtime;
mhdr->uidlist_mtime_nsecs = ST_MTIME_NSEC(*st);
mhdr->uidlist_size = st->st_size;