From fc7ad0c9a97377934f6f1c03c5fa805a6c471513 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 7 Aug 2001 23:19:20 +0000 Subject: This should return a GtkWidget not a GtkObject. 2001-08-07 Jeffrey Stedfast * subscribe-dialog.c (subscribe_dialog_new): This should return a GtkWidget not a GtkObject. * mail-session.c (get_filter_driver): Update to use user's logging preferences. * mail-accounts.c (filter_log_toggled): New. (filter_log_path_changed): New. (construct): Get and attach signals to the filter logging option widgets. * mail-config.c (config_read): Read in filter logging options. (mail_config_write_on_exit): Save filter logging options. (mail_config_set_filter_log_path): Implemented. (mail_config_get_filter_log_path): Implemented. (mail_config_set_filter_log): Implemented. (mail_config_get_filter_log): Implemented. svn path=/trunk/; revision=11751 --- mail/mail-session.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'mail/mail-session.c') diff --git a/mail/mail-session.c b/mail/mail-session.c index 05b1e79d17..fe56537588 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -343,7 +343,7 @@ get_filter_driver (CamelSession *session, const char *type, CamelException *ex) RuleContext *fc; GString *fsearch, *faction; FilterRule *rule = NULL; - char *user, *system, *filename; + char *user, *system; user = g_strdup_printf ("%s/filters.xml", evolution_dir); system = EVOLUTION_DATADIR "/evolution/filtertypes.xml"; @@ -354,14 +354,15 @@ get_filter_driver (CamelSession *session, const char *type, CamelException *ex) driver = camel_filter_driver_new (); camel_filter_driver_set_folder_func (driver, get_folder, NULL); - if (TRUE /* perform_logging FIXME */) { + if (mail_config_get_filter_log ()) { MailSession *ms = (MailSession *)session; if (ms->filter_logfile == NULL) { - filename = g_strdup_printf ("%s/evolution-filter-log", - evolution_dir); - ms->filter_logfile = fopen (filename, "a+"); - g_free (filename); + const char *filename; + + filename = mail_config_get_filter_log_path (); + if (filename) + ms->filter_logfile = fopen (filename, "a+"); } if (ms->filter_logfile) camel_filter_driver_set_logfile (driver, ms->filter_logfile); -- cgit v1.2.3