aboutsummaryrefslogtreecommitdiff
path: root/libsylph/prefs_common.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-02 10:18:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-11-02 10:18:53 +0000
commitefb2528ff9a62784209a754de1cb183226d2f7be (patch)
treeee2199ef7ed3fa4020593675b02aab9ade8a2a2a /libsylph/prefs_common.c
parent51951630e709bef4be1f74be57a4856bbd72c4ff (diff)
added an option to mark filtered junk mails as read.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@710 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/prefs_common.c')
-rw-r--r--libsylph/prefs_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c
index 18dbecaa..a2b83d0e 100644
--- a/libsylph/prefs_common.c
+++ b/libsylph/prefs_common.c
@@ -270,6 +270,7 @@ static PrefParam param[] = {
P_BOOL},
{"delete_junk_on_receive", "TRUE", &prefs_common.delete_junk_on_recv,
P_BOOL},
+ {"mark_junk_as_read", "FALSE", &prefs_common.mark_junk_as_read, P_BOOL},
/* Privacy */
{"auto_check_signatures", "TRUE", &prefs_common.auto_check_signatures,
@@ -452,6 +453,11 @@ void prefs_common_junk_filter_list_set(void)
action_list = g_slist_append(NULL, action);
}
+ if (prefs_common.mark_junk_as_read) {
+ action = filter_action_new(FLT_ACTION_MARK_READ, NULL);
+ action_list = g_slist_append(action_list, action);
+ }
+
rule = filter_rule_new(_("Junk mail filter"), FLT_OR,
cond_list, action_list);