Mercurial > dovecot > core-2.2
diff src/lib-storage/index/index-storage.h @ 7128:98788fdcc3a6 HEAD
When syncing a mailbox, sync the view internally first completely and just
get a list of messages that have changed. Then just have mailbox_sync_next()
return flag updates from that list. This avoids duplicate notifications and
also fixes some bugs in previous implementation.
MAILBOX_SYNC_TYPE_KEYWORDS no longer exists, keyword changes are included in
MAILBOX_SYNC_TYPE_FLAGS.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 06 Jan 2008 11:04:07 +0200 |
parents | f0623745bd4c |
children | db65d921b0e1 |
line wrap: on
line diff
--- a/src/lib-storage/index/index-storage.h Sun Jan 06 11:00:44 2008 +0200 +++ b/src/lib-storage/index/index-storage.h Sun Jan 06 11:04:07 2008 +0200 @@ -136,7 +136,7 @@ struct mailbox_status *status_r); int index_storage_sync(struct mailbox *box, enum mailbox_sync_flags flags); - +enum mailbox_sync_type index_sync_type_convert(enum mail_index_sync_type type); void index_storage_get_status(struct mailbox *box, enum mailbox_status_items items, struct mailbox_status *status_r);