diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-02 10:18:53 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-02 10:18:53 +0000 |
commit | efb2528ff9a62784209a754de1cb183226d2f7be (patch) | |
tree | ee2199ef7ed3fa4020593675b02aab9ade8a2a2a /libsylph | |
parent | 51951630e709bef4be1f74be57a4856bbd72c4ff (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')
-rw-r--r-- | libsylph/prefs_common.c | 6 | ||||
-rw-r--r-- | libsylph/prefs_common.h | 1 |
2 files changed, 7 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); diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h index a04d62da..f3c3ce9d 100644 --- a/libsylph/prefs_common.h +++ b/libsylph/prefs_common.h @@ -193,6 +193,7 @@ struct _PrefsCommon gchar *junk_folder; gboolean filter_junk_on_recv; gboolean delete_junk_on_recv; + gboolean mark_junk_as_read; /* Privacy */ gboolean auto_check_signatures; |