dovecot-2.1: lib-storage: Added a mailbox.synced flag, which is ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 9 06:12:24 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/eab6ce7a5ad6
changeset: 14520:eab6ce7a5ad6
user: Timo Sirainen <tss at iki.fi>
date: Wed May 09 06:11:58 2012 +0300
description:
lib-storage: Added a mailbox.synced flag, which is set when mailbox sync has succeeded.
diffstat:
src/lib-storage/mail-storage-private.h | 2 ++
src/lib-storage/mail-storage.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 5a4eb9955d29 -r eab6ce7a5ad6 src/lib-storage/mail-storage-private.h
--- a/src/lib-storage/mail-storage-private.h Wed May 09 04:41:47 2012 +0300
+++ b/src/lib-storage/mail-storage-private.h Wed May 09 06:11:58 2012 +0300
@@ -279,6 +279,8 @@
unsigned int disable_reflink_copy_to:1;
/* Don't allow creating any new keywords */
unsigned int disallow_new_keywords:1;
+ /* Mailbox has been synced at least once */
+ unsigned int synced:1;
};
struct mail_vfuncs {
diff -r 5a4eb9955d29 -r eab6ce7a5ad6 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c Wed May 09 04:41:47 2012 +0300
+++ b/src/lib-storage/mail-storage.c Wed May 09 06:11:58 2012 +0300
@@ -1349,6 +1349,8 @@
i_error("Syncing INBOX failed: %s", errormsg);
}
}
+ if (ret == 0)
+ box->synced = TRUE;
return ret;
}
More information about the dovecot-cvs
mailing list