aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_common_dialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-02-14 08:01:28 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-02-14 08:01:28 +0000
commitdac50a4059b01b89aa46565370a1a9a14d957455 (patch)
treed635e4bfa30d49dba8428fbf1e596385c2a8929d /src/prefs_common_dialog.c
parentae3597033e34c838ff5d18f69f3fb64f00c798c4 (diff)
added an option: 'Do not classify message as junk if sender is in the address book'
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3222 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_common_dialog.c')
-rw-r--r--src/prefs_common_dialog.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c
index d4c8d2bf..a917fa32 100644
--- a/src/prefs_common_dialog.c
+++ b/src/prefs_common_dialog.c
@@ -194,6 +194,7 @@ static struct JunkMail {
GtkWidget *chkbtn_filter_on_recv;
GtkWidget *chkbtn_filter_before;
GtkWidget *chkbtn_delete_on_recv;
+ GtkWidget *chkbtn_nofilter_in_book;
GtkWidget *chkbtn_mark_as_read;
} junk;
@@ -515,6 +516,8 @@ static PrefsUIData ui_data[] = {
prefs_set_data_from_toggle, prefs_set_toggle},
{"delete_junk_on_receive", &junk.chkbtn_delete_on_recv,
prefs_set_data_from_toggle, prefs_set_toggle},
+ {"nofilter_junk_sender_in_book", &junk.chkbtn_nofilter_in_book,
+ prefs_set_data_from_toggle, prefs_set_toggle},
{"mark_junk_as_read", &junk.chkbtn_mark_as_read,
prefs_set_data_from_toggle, prefs_set_toggle},
@@ -2246,6 +2249,7 @@ static void prefs_junk_create(void)
GtkWidget *chkbtn_filter_on_recv;
GtkWidget *chkbtn_filter_before;
GtkWidget *chkbtn_delete_on_recv;
+ GtkWidget *chkbtn_nofilter_in_book;
GtkWidget *chkbtn_mark_as_read;
vbox1 = gtk_vbox_new (FALSE, VSPACING);
@@ -2379,18 +2383,22 @@ static void prefs_junk_create(void)
SET_TOGGLE_SENSITIVITY (chkbtn_filter_on_recv, chkbtn_filter_before);
SET_TOGGLE_SENSITIVITY (chkbtn_filter_on_recv, chkbtn_delete_on_recv);
+ PACK_CHECK_BUTTON
+ (vbox3, chkbtn_nofilter_in_book,
+ _("Do not classify message as junk if sender is in the address book"));
PACK_CHECK_BUTTON (vbox3, chkbtn_mark_as_read,
_("Mark filtered junk mails as read"));
- junk.chkbtn_enable_junk = chkbtn_enable_junk;
- junk.entry_junk_learncmd = entry_junk_learncmd;
- junk.entry_nojunk_learncmd = entry_nojunk_learncmd;
- junk.entry_classify_cmd = entry_classify_cmd;
- junk.entry_junkfolder = entry_junkfolder;
- junk.chkbtn_filter_on_recv = chkbtn_filter_on_recv;
- junk.chkbtn_filter_before = chkbtn_filter_before;
- junk.chkbtn_delete_on_recv = chkbtn_delete_on_recv;
- junk.chkbtn_mark_as_read = chkbtn_mark_as_read;
+ junk.chkbtn_enable_junk = chkbtn_enable_junk;
+ junk.entry_junk_learncmd = entry_junk_learncmd;
+ junk.entry_nojunk_learncmd = entry_nojunk_learncmd;
+ junk.entry_classify_cmd = entry_classify_cmd;
+ junk.entry_junkfolder = entry_junkfolder;
+ junk.chkbtn_filter_on_recv = chkbtn_filter_on_recv;
+ junk.chkbtn_filter_before = chkbtn_filter_before;
+ junk.chkbtn_delete_on_recv = chkbtn_delete_on_recv;
+ junk.chkbtn_nofilter_in_book = chkbtn_nofilter_in_book;
+ junk.chkbtn_mark_as_read = chkbtn_mark_as_read;
}
#if USE_GPGME