Mercurial > dovecot > core-2.2
changeset 12643:f5f877ecd7f6
mbox: No longer try to preserve sync stamps from v1.0 mbox index files.
The worst that can happen is if a v1.0 user upgrades to v2.1, an mbox gets
resynced unnecessarily.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 08 Feb 2011 22:17:44 +0200 |
parents | 46dc31d8769f |
children | 13fdb8fed8bc |
files | src/lib-storage/index/mbox/mbox-sync.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c Tue Feb 08 01:36:19 2011 +0200 +++ b/src/lib-storage/index/mbox/mbox-sync.c Tue Feb 08 22:17:44 2011 +0200 @@ -1628,7 +1628,6 @@ 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 @@ 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; }