diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-01-18 05:08:51 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-01-18 05:08:51 +0000 |
commit | 04e39b4605146e09a9ae8b977b2f453336f1eab6 (patch) | |
tree | 3991113cbf4aef0c7cac5da4e474cf855696461e /src/prefs_account_dialog.c | |
parent | e2883f1f00c90fe1aac3ab84d5a69f4146e1e0d5 (diff) |
added the option 'Filter new messages in INBOX on receiving'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1496 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_account_dialog.c')
-rw-r--r-- | src/prefs_account_dialog.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/prefs_account_dialog.c b/src/prefs_account_dialog.c index 77b8b63d..6dcc9576 100644 --- a/src/prefs_account_dialog.c +++ b/src/prefs_account_dialog.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2006 Hiroyuki Yamamoto + * Copyright (C) 1999-2007 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -97,6 +97,7 @@ static struct Receive { GtkWidget *imap_frame; GtkWidget *imap_auth_type_optmenu; GtkWidget *imap_check_inbox_chkbtn; + GtkWidget *imap_filter_inbox_chkbtn; GtkWidget *nntp_frame; GtkWidget *maxarticle_spinbtn; @@ -267,6 +268,8 @@ static PrefsUIData ui_data[] = { prefs_set_data_from_entry, prefs_set_entry}, {"imap_check_inbox_only", &receive.imap_check_inbox_chkbtn, prefs_set_data_from_toggle, prefs_set_toggle}, + {"imap_filter_inbox_on_receive", &receive.imap_filter_inbox_chkbtn, + prefs_set_data_from_toggle, prefs_set_toggle}, {"imap_auth_method", &receive.imap_auth_type_optmenu, prefs_account_imap_auth_type_set_data_from_optmenu, prefs_account_imap_auth_type_set_optmenu}, @@ -839,6 +842,7 @@ static void prefs_account_receive_create(void) GtkWidget *optmenu_menu; GtkWidget *menuitem; GtkWidget *imap_check_inbox_chkbtn; + GtkWidget *imap_filter_inbox_chkbtn; GtkWidget *nntp_frame; GtkWidget *maxarticle_label; @@ -991,6 +995,8 @@ static void prefs_account_receive_create(void) PACK_CHECK_BUTTON (vbox2, imap_check_inbox_chkbtn, _("Only check INBOX on receiving")); + PACK_CHECK_BUTTON (vbox2, imap_filter_inbox_chkbtn, + _("Filter new messages in INBOX on receiving")); PACK_FRAME (vbox1, nntp_frame, _("News")); @@ -1039,9 +1045,10 @@ static void prefs_account_receive_create(void) receive.inbox_entry = inbox_entry; receive.inbox_btn = inbox_btn; - receive.imap_frame = imap_frame; - receive.imap_auth_type_optmenu = optmenu; - receive.imap_check_inbox_chkbtn = imap_check_inbox_chkbtn; + receive.imap_frame = imap_frame; + receive.imap_auth_type_optmenu = optmenu; + receive.imap_check_inbox_chkbtn = imap_check_inbox_chkbtn; + receive.imap_filter_inbox_chkbtn = imap_filter_inbox_chkbtn; receive.nntp_frame = nntp_frame; receive.maxarticle_spinbtn = maxarticle_spinbtn; |