aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-25 10:14:52 +0000
committerHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-25 10:14:52 +0000
commite6effb250999ccd1ba666506a36e11e815abe2cc (patch)
tree54cbefaafa7cb5c4bcb7b637f203eae854009fa3 /libsylph
parent96574dad06aa75979b95d29f04afafcc06b588f7 (diff)
fixed a bug that messages which were not filtered were not counted as new messages in imap filtering.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1576 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/imap.c4
-rw-r--r--libsylph/mh.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index f3856ce1..caff7255 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -1067,7 +1067,9 @@ static GSList *imap_get_msg_list_full(Folder *folder, FolderItem *item,
newlist = mlist;
}
- mlist = procmsg_sort_msg_list(mlist, item->sort_key, item->sort_type);
+ if (!uncached_only)
+ mlist = procmsg_sort_msg_list(mlist, item->sort_key,
+ item->sort_type);
item->last_num = last_uid;
diff --git a/libsylph/mh.c b/libsylph/mh.c
index c90bb117..1ba2770e 100644
--- a/libsylph/mh.c
+++ b/libsylph/mh.c
@@ -260,7 +260,9 @@ static GSList *mh_get_msg_list_full(Folder *folder, FolderItem *item,
procmsg_set_flags(mlist, item);
- mlist = procmsg_sort_msg_list(mlist, item->sort_key, item->sort_type);
+ if (!uncached_only)
+ mlist = procmsg_sort_msg_list(mlist, item->sort_key,
+ item->sort_type);
if (item->mark_queue)
item->mark_dirty = TRUE;