changeset 16:3de6ef1b50cb HEAD

call imap_message_close() at the end of FETCH, so no message files are left open.
author Timo Sirainen <tss@iki.fi>
date Fri, 23 Aug 2002 01:12:10 +0300
parents e01bf167b27c
children b4e760cf04c3
files src/lib-storage/index/index-fetch.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-fetch.c	Fri Aug 23 01:01:10 2002 +0300
+++ b/src/lib-storage/index/index-fetch.c	Fri Aug 23 01:12:10 2002 +0300
@@ -356,6 +356,11 @@
 						    index_fetch_mail, &ctx);
 	}
 
+	/* close open message files in cache, they're reopened at next fetch
+	   anyway, and especially with mbox the old data may not be valid
+	   then */
+	imap_msgcache_close(ibox->cache);
+
         flags_file_list_unref(ibox->flagsfile);
 
 	if (!ibox->index->set_lock(ibox->index, MAIL_LOCK_UNLOCK) || ret == -1)