aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
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 /src/inc.c
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 'src/inc.c')
-rw-r--r--src/inc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inc.c b/src/inc.c
index 81da2fb2..4d791a68 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -310,6 +310,10 @@ static gint inc_remote_account_mail(MainWindow *mainwin, PrefsAccount *account)
}
} else if (fltinfo->actions[FLT_ACTION_DELETE])
folder_item_remove_msg(inbox, msginfo);
+ else if (MSG_IS_NEW(msginfo->flags) ||
+ MSG_IS_UNREAD(msginfo->flags))
+ ++new_msgs;
+
if (fltinfo->drop_done)
++n_filtered;
@@ -318,7 +322,8 @@ static gint inc_remote_account_mail(MainWindow *mainwin, PrefsAccount *account)
procmsg_msg_list_free(mlist);
- debug_print("inc_remote_account_mail(): %d message(s) filtered\n", n_filtered);
+ debug_print("inc_remote_account_mail(): INBOX: %d new, %d filtered\n",
+ new_msgs, n_filtered);
if (!prefs_common.scan_all_after_inc && item != NULL &&
inbox == item)