diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-07 10:17:56 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-07 10:17:56 +0000 |
commit | 168a914e917f0c6b336a1a0f2f3d08e35c001d31 (patch) | |
tree | 8637dd8814aab1f37b0adf853e7ebeaca494d110 /libsylph/news.c | |
parent | 98bc6b1b9afbee2d32baf91c42906a739aba3f8d (diff) |
update caches and flags when reading message list from a folder.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@806 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/news.c')
-rw-r--r-- | libsylph/news.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libsylph/news.c b/libsylph/news.c index e54f37d0..0c1ab053 100644 --- a/libsylph/news.c +++ b/libsylph/news.c @@ -342,9 +342,19 @@ static GSList *news_get_article_list(Folder *folder, FolderItem *item, alist = procmsg_sort_msg_list(alist, item->sort_key, item->sort_type); + if (item->mark_queue) + item->mark_dirty = TRUE; + debug_print("cache_dirty: %d, mark_dirty: %d\n", item->cache_dirty, item->mark_dirty); + if (!item->opened) { + if (item->cache_dirty) + procmsg_write_cache_list(item, alist); + if (item->mark_dirty) + procmsg_write_flags_list(item, alist); + } + return alist; } |