diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-11-02 11:52:31 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-11-02 11:52:31 +0800 |
commit | f67d6c30e20228ca40064fb3dc077527cbc122c3 (patch) | |
tree | 6d6f212cdd5064febe6e99ab4a91284eee4d1b2f | |
parent | ed8a08ed1a4befb75d8d883b973f8d9516a0a80a (diff) | |
download | gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.tar gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.tar.gz gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.tar.bz2 gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.tar.lz gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.tar.xz gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.tar.zst gsoc2013-evolution-f67d6c30e20228ca40064fb3dc077527cbc122c3.zip |
Don't call the default logging function. (do_fetch_mail): Set the logfile
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (mail_op_report_status): Don't call the default
logging function.
(do_fetch_mail): Set the logfile and don't pass the logfile to
filter_driver_set_status_func - it's purpose has been altered.
(do_filter_ondemand): Same.
svn path=/trunk/; revision=6341
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/mail-ops.c | 20 |
2 files changed, 16 insertions, 12 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 677c6ab7db..874cd6ddf4 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2000-11-01 Jeffrey Stedfast <fejj@helixcode.com> + + * mail-ops.c (mail_op_report_status): Don't call the default + logging function. + (do_fetch_mail): Set the logfile and don't pass the logfile to + filter_driver_set_status_func - it's purpose has been altered. + (do_filter_ondemand): Same. + 2000-11-02 Not Zed <NotZed@HelixCode.com> ** Merged in camel-incremental-branch. diff --git a/mail/mail-ops.c b/mail/mail-ops.c index a13205fc38..fcc9a7e5ae 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -99,15 +99,12 @@ mail_load_evolution_rule_context () } static void -mail_op_report_status (FilterDriver *driver, enum filter_status_t status, const char *desc, - CamelMimeMessage *msg, void *data) +mail_op_report_status (FilterDriver *driver, enum filter_status_t status, const char *desc, void *data) { - /*printf("reporting status: %s\n", desc);*/ - /* FIXME: make it work */ - switch(status) { + switch (status) { case FILTER_STATUS_START: - mail_op_set_message (_("Retrieving messages : %s"), desc); + mail_op_set_message (desc); break; case FILTER_STATUS_END: break; @@ -116,10 +113,6 @@ mail_op_report_status (FilterDriver *driver, enum filter_status_t status, const default: break; } - - /* use the 'standard' logging function, data is already the fd */ - if (data) - filter_driver_status_log (driver, status, desc, msg, data); } static void @@ -163,7 +156,9 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) logfile = fopen (filename, "a+"); g_free (filename); } - filter_driver_set_status_func (filter, mail_op_report_status, logfile); + + filter_driver_set_logfile (filter, logfile); + filter_driver_set_status_func (filter, mail_op_report_status, NULL); /* why on earth we 'up' a lock to get it, ... */ mail_tool_camel_lock_up (); @@ -359,7 +354,8 @@ do_filter_ondemand (gpointer in_data, gpointer op_data, CamelException *ex) g_free (filename); } - filter_driver_set_status_func (driver, mail_op_report_status, logfile); + filter_driver_set_logfile (driver, logfile); + filter_driver_set_status_func (driver, mail_op_report_status, NULL); for (i = 0; i < input->uids->len; i++) { CamelMimeMessage *message; |