aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-08 06:17:36 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-08 06:17:36 +0000
commitfe7940cb8ba4315cb4dfcbffe6df76769580c9ed (patch)
treeb88879b9543f68b9422f0136db473b15e69c50be /libsylph
parent168a914e917f0c6b336a1a0f2f3d08e35c001d31 (diff)
imap_get_msg_list(): only update mtime when folder is not opened.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@807 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/imap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index 5461b10a..c3127cc9 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -1046,8 +1046,6 @@ static GSList *imap_get_msg_list(Folder *folder, FolderItem *item,
item->mark_dirty = TRUE;
}
- item->mtime = uid_validity;
-
mlist = procmsg_sort_msg_list(mlist, item->sort_key, item->sort_type);
item->last_num = last_uid;
@@ -1059,6 +1057,7 @@ static GSList *imap_get_msg_list(Folder *folder, FolderItem *item,
item->cache_dirty, item->mark_dirty);
if (!item->opened) {
+ item->mtime = uid_validity;
if (item->cache_dirty)
procmsg_write_cache_list(item, mlist);
if (item->mark_dirty)