diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-14 06:04:14 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-14 06:04:14 +0000 |
commit | 92f8638b84b7d4ea0df3cc0ae497900b6f654926 (patch) | |
tree | 67fc832300b9331d93c9363835b8e69d673d6818 /src | |
parent | f2c2b28af4d40a19a753f5f91aa0bb9be05b0d40 (diff) |
enabled automatic junk mail filtering on IMAP.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1566 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/inc.c | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -262,8 +262,27 @@ static gint inc_remote_account_mail(MainWindow *mainwin, PrefsAccount *account) fltinfo = filter_info_new(); fltinfo->account = account; fltinfo->flags = msginfo->flags; - filter_apply_msginfo(prefs_common.fltlist, - msginfo, fltinfo); + + if (prefs_common.enable_junk && + prefs_common.filter_junk_on_recv && + prefs_common.filter_junk_before) { + filter_apply_msginfo(prefs_common.junk_fltlist, + msginfo, fltinfo); + } + + if (!fltinfo->drop_done) { + filter_apply_msginfo(prefs_common.fltlist, + msginfo, fltinfo); + } + + if (!fltinfo->drop_done && + prefs_common.enable_junk && + prefs_common.filter_junk_on_recv && + !prefs_common.filter_junk_before) { + filter_apply_msginfo(prefs_common.junk_fltlist, + msginfo, fltinfo); + } + if (fltinfo->actions[FLT_ACTION_MOVE] && fltinfo->move_dest) { folder_item_move_msg |