dovecot: Make sure cache file is opened when looking up headers.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 14 02:16:03 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/c341ded6a38a
changeset: 5732:c341ded6a38a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 14 02:15:57 2007 +0300
description:
Make sure cache file is opened when looking up headers.

diffstat:

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

diffs (13 lines):

diff -r e53cd8613542 -r c341ded6a38a src/lib-index/mail-cache-lookup.c
--- a/src/lib-index/mail-cache-lookup.c	Thu Jun 14 02:11:17 2007 +0300
+++ b/src/lib-index/mail-cache-lookup.c	Thu Jun 14 02:15:57 2007 +0300
@@ -442,6 +442,9 @@ int mail_cache_lookup_headers(struct mai
 	if (fields_count == 0)
 		return 1;
 
+	if (!view->cache->opened)
+		(void)mail_cache_open_and_verify(view->cache);
+
 	t_push();
 
 	/* @UNSAFE */


More information about the dovecot-cvs mailing list