aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/inc.c23
3 files changed, 31 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d08110a..6cd640ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-03-14
+ * src/inc.c: inc_remote_account_mail(): enabled automatic junk mail
+ filtering on IMAP.
+
+2007-03-14
+
* libsylph/codeconv.c: conv_encode_header(): fixed wrong handling
of quotation in continuing multi-byte strings.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index fa1e6243..4465f83b 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2007-03-14
+ * src/inc.c: inc_remote_account_mail(): IMAP で迷惑メールの自動
+ 振り分けを有効にした。
+
+2007-03-14
+
* libsylph/codeconv.c: conv_encode_header(): 継続するマルチバイト
文字列における引用符の処理に誤りがあったのを修正。
diff --git a/src/inc.c b/src/inc.c
index 7debbe49..ca886372 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -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