]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: No longer try to preserve sync stamps from v1.0 mbox index files.
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Feb 2011 20:17:44 +0000 (22:17 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Feb 2011 20:17:44 +0000 (22:17 +0200)
The worst that can happen is if a v1.0 user upgrades to v2.1, an mbox gets
resynced unnecessarily.

src/lib-storage/index/mbox/mbox-sync.c

index fc53776afa6684eda343f88dc89528fe8a8cc116..4873c4aaa8b432eebe0f25750caa411ef4704b99 100644 (file)
@@ -1628,7 +1628,6 @@ static int mbox_sync_do(struct mbox_sync_context *sync_ctx,
 
 int mbox_sync_header_refresh(struct mbox_mailbox *mbox)
 {
-       const struct mail_index_header *hdr;
        const void *data;
        size_t data_size;
 
@@ -1640,10 +1639,8 @@ int mbox_sync_header_refresh(struct mbox_mailbox *mbox)
        mail_index_get_header_ext(mbox->box.view, mbox->mbox_ext_idx,
                                  &data, &data_size);
        if (data_size == 0) {
-               /* doesn't exist. FIXME: backwards compatibility copying */
-               hdr = mail_index_get_header(mbox->box.view);
-               mbox->mbox_hdr.sync_mtime = hdr->sync_stamp;
-               mbox->mbox_hdr.sync_size = hdr->sync_size;
+               /* doesn't exist yet. */
+               memset(&mbox->mbox_hdr, 0, sizeof(mbox->mbox_hdr));
                return 0;
        }