From efb2528ff9a62784209a754de1cb183226d2f7be Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 2 Nov 2005 10:18:53 +0000 Subject: 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 --- libsylph/prefs_common.c | 6 ++++++ libsylph/prefs_common.h | 1 + 2 files changed, 7 insertions(+) (limited to 'libsylph') 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; -- cgit v1.2.3