aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-09-14 05:27:03 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-09-14 05:27:03 +0000
commita94ab16492fbcd9c4b568a237bd21df8aed78763 (patch)
tree5754ccb1f4239963572ccb449842d8dc610a444c /src/summaryview.c
parent5ca8acc55bfcd804401e885f863f0f88ddfacdcb (diff)
update summary caches on receiving.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2247 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index 4829f7e0..096869cf 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2008 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2009 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -758,7 +758,9 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
save_data = item->folder->data;
item->folder->data = summaryview;
folder_set_ui_func(item->folder, get_msg_list_func, NULL);
+
mlist = folder_item_get_msg_list(item, !update_cache);
+
folder_set_ui_func(item->folder, NULL, NULL);
item->folder->data = save_data;
@@ -2512,6 +2514,8 @@ gint summary_write_cache(SummaryView *summaryview)
procmsg_write_flags(msginfo, fps.mark_fp);
}
+ if (item->cache_queue)
+ procmsg_flush_cache_queue(item, fps.cache_fp);
if (item->mark_queue)
procmsg_flush_mark_queue(item, fps.mark_fp);