dovecot: When getting cache fields list, make sure cache file is...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jul 15 02:43:40 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/6f66ce9491ad
changeset: 6003:6f66ce9491ad
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jul 15 02:30:34 2007 +0300
description:
When getting cache fields list, make sure cache file is opened.

diffstat:

1 file changed, 3 insertions(+)
src/lib-index/mail-cache-fields.c |    3 +++

diffs (13 lines):

diff -r 16f91815c7ed -r 6f66ce9491ad src/lib-index/mail-cache-fields.c
--- a/src/lib-index/mail-cache-fields.c	Sun Jul 15 01:21:53 2007 +0300
+++ b/src/lib-index/mail-cache-fields.c	Sun Jul 15 02:30:34 2007 +0300
@@ -146,6 +146,9 @@ mail_cache_register_get_list(struct mail
 {
         struct mail_cache_field *list;
 	unsigned int i;
+
+	if (!cache->opened)
+		(void)mail_cache_open_and_verify(cache);
 
 	list = p_new(pool, struct mail_cache_field, cache->fields_count);
 	for (i = 0; i < cache->fields_count; i++) {


More information about the dovecot-cvs mailing list