changeset 5732:c341ded6a38a HEAD

Make sure cache file is opened when looking up headers.
author Timo Sirainen <tss@iki.fi>
date Thu, 14 Jun 2007 02:15:57 +0300
parents e53cd8613542
children 4b5ce642957d
files src/lib-index/mail-cache-lookup.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	if (fields_count == 0)
 		return 1;
 
+	if (!view->cache->opened)
+		(void)mail_cache_open_and_verify(view->cache);
+
 	t_push();
 
 	/* @UNSAFE */