diff options
author | Hiro <Hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-25 10:14:52 +0000 |
---|---|---|
committer | Hiro <Hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-25 10:14:52 +0000 |
commit | e6effb250999ccd1ba666506a36e11e815abe2cc (patch) | |
tree | 54cbefaafa7cb5c4bcb7b637f203eae854009fa3 /src/inc.c | |
parent | 96574dad06aa75979b95d29f04afafcc06b588f7 (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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |