dovecot-2.1: lib-index: mail_cache_open_and_verify() is now public.

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 9 01:23:16 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/21c3ce1b21cd
changeset: 14083:21c3ce1b21cd
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 09 01:21:41 2012 +0200
description:
lib-index: mail_cache_open_and_verify() is now public.

diffstat:

 src/lib-index/mail-cache-private.h |  2 --
 src/lib-index/mail-cache.h         |  2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 09db0f7aa6ce -r 21c3ce1b21cd src/lib-index/mail-cache-private.h
--- a/src/lib-index/mail-cache-private.h	Thu Feb 09 01:00:14 2012 +0200
+++ b/src/lib-index/mail-cache-private.h	Thu Feb 09 01:21:41 2012 +0200
@@ -221,8 +221,6 @@
 	unsigned int appends_checked:1;
 };
 
-int mail_cache_open_and_verify(struct mail_cache *cache);
-
 /* Explicitly lock the cache file. Returns -1 if error / timed out,
    1 if ok, 0 if cache is broken/doesn't exist */
 int mail_cache_lock(struct mail_cache *cache, bool require_same_reset_id);
diff -r 09db0f7aa6ce -r 21c3ce1b21cd src/lib-index/mail-cache.h
--- a/src/lib-index/mail-cache.h	Thu Feb 09 01:00:14 2012 +0200
+++ b/src/lib-index/mail-cache.h	Thu Feb 09 01:21:41 2012 +0200
@@ -70,6 +70,8 @@
 			struct mail_index_transaction *trans);
 /* Returns TRUE if there is at least something in the cache. */
 bool mail_cache_exists(struct mail_cache *cache);
+/* Open and read cache header. Returns 0 if ok, -1 if error/corrupted. */
+int mail_cache_open_and_verify(struct mail_cache *cache);
 
 struct mail_cache_view *
 mail_cache_view_open(struct mail_cache *cache, struct mail_index_view *iview);


More information about the dovecot-cvs mailing list