From ca9ab0c63bc468566064505263088649064993a6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 11 Sep 2000 21:37:48 +0000 Subject: Updated to use the new mail_do_filter_ondemand. 2000-09-11 Jeffrey Stedfast * mail-callbacks.c (run_filter_ondemand): Updated to use the new mail_do_filter_ondemand. * mail-ops.c (do_fetch_mail): Update to use the new filter_driver_run args. (do_filter_ondemand): Updated to use the new filter_driver_run args. (mail_do_filter_ondemand): Take a FilterContext as a argument instead of a driver as we need to destroy the filter inside the do_filter_ondemand function and things'd get messy. svn path=/trunk/; revision=5347 --- mail/mail-callbacks.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index aede7f2e65..6ebc7a3627 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -730,20 +730,9 @@ void run_filter_ondemand (BonoboUIHandler *uih, gpointer user_data, const char *path) { struct fb_ondemand_closure *oc = (struct fb_ondemand_closure *) user_data; - FilterDriver *d; if (oc->fb->folder == NULL) return; - printf ("Running filter \"%s\"\n", oc->rule->name); - - d = filter_driver_new (oc->fb->filter_context, - mail_tool_filter_get_folder_func, - NULL); - - mail_do_filter_ondemand (d, oc->fb->folder, oc->fb->folder); - - /*filter_driver_run (d, oc->fb->folder, oc->fb->folder, - FILTER_SOURCE_DEMAND, TRUE, - NULL, NULL, NULL);*/ + mail_do_filter_ondemand (oc->fb->filter_context, oc->fb->folder, oc->fb->folder); } -- cgit v1.2.3