From 5d4acb77ef7a1f2de8fc0cc757a3355df1aa3a88 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 9 Sep 2000 20:13:50 +0000 Subject: might be a good idea to *save* the uids in the cache when we're done fetching mail ;-) svn path=/trunk/; revision=5291 --- mail/mail-ops.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mail/mail-ops.c b/mail/mail-ops.c index a0b4b00437..082e64fd28 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -233,7 +233,15 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) camel_object_unhook_event (CAMEL_OBJECT (folder), "folder_changed", input->hook_func, input->hook_data); - camel_folder_free_uids (folder, uids); + /* save the cache for the next time we fetch mail! */ + if (cache) { + camel_uid_cache_free_uids (uids); + + if (!camel_exception_is_set (ex)) + camel_uid_cache_save (cache); + camel_uid_cache_destroy (cache); + } else + camel_folder_free_uids (folder, uids); data->empty = FALSE; } -- cgit v1.2.3