dovecot-2.0: dsync: Sync messages' modseqs.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 29 01:59:07 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/535797d56631
changeset: 9692:535797d56631
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 28 18:59:01 2009 -0400
description:
dsync: Sync messages' modseqs.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/dsync/dsync-worker-local.c | 6 ++++--
diffs (30 lines):
diff -r b09d9350a2d9 -r 535797d56631 src/dsync/dsync-worker-local.c
--- a/src/dsync/dsync-worker-local.c Tue Jul 28 18:58:31 2009 -0400
+++ b/src/dsync/dsync-worker-local.c Tue Jul 28 18:59:01 2009 -0400
@@ -239,6 +239,8 @@ static int local_mailbox_open(struct loc
mailbox_close(&box);
return -1;
}
+ (void)mailbox_enable(box, MAILBOX_FEATURE_CONDSTORE);
+
mailbox_get_status(box, STATUS_GUID, &status);
if (memcmp(status.mailbox_guid, guid->guid, sizeof(guid->guid)) != 0) {
i_error("Mailbox %s changed its GUID (%s -> %s)",
@@ -592,7 +594,7 @@ local_worker_msg_update_metadata(struct
msg->keywords);
mail_update_keywords(worker->mail, MODIFY_REPLACE, keywords);
mailbox_keywords_unref(worker->mail->box, &keywords);
- // FIXME: update modseq if flags didn't change
+ mail_update_modseq(worker->mail, msg->modseq);
}
}
@@ -632,7 +634,7 @@ local_worker_msg_save_set_metadata(struc
mailbox_keywords_unref(box, &keywords);
mailbox_save_set_uid(save_ctx, msg->uid);
mailbox_save_set_save_date(save_ctx, msg->save_date);
- // FIXME: set modseq
+ mailbox_save_set_min_modseq(save_ctx, msg->modseq);
}
static void
More information about the dovecot-cvs
mailing list