diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-08 07:19:20 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-08 07:19:20 +0800 |
commit | fc7ad0c9a97377934f6f1c03c5fa805a6c471513 (patch) | |
tree | 07e894ae98ad386f35bbad9ab2359cbd18152afd /mail/mail-session.c | |
parent | a3075377cc82352d45107303b3cde5a22b0cfb44 (diff) | |
download | gsoc2013-evolution-fc7ad0c9a97377934f6f1c03c5fa805a6c471513.tar.gz gsoc2013-evolution-fc7ad0c9a97377934f6f1c03c5fa805a6c471513.tar.zst gsoc2013-evolution-fc7ad0c9a97377934f6f1c03c5fa805a6c471513.zip |
This should return a GtkWidget not a GtkObject.
2001-08-07 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 13 |
1 files changed, 7 insertions, 6 deletions
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); |