aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-09-12 05:37:48 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-09-12 05:37:48 +0800
commitca9ab0c63bc468566064505263088649064993a6 (patch)
treead5e4262e6975cebd8615d2cfb2d3dadd8b69c05 /mail/mail-callbacks.c
parente98f2565b3933b735c82753cd6d579d74de639df (diff)
downloadgsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.tar
gsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.tar.gz
gsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.tar.bz2
gsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.tar.lz
gsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.tar.xz
gsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.tar.zst
gsoc2013-evolution-ca9ab0c63bc468566064505263088649064993a6.zip
Updated to use the new mail_do_filter_ondemand.
2000-09-11 Jeffrey Stedfast <fejj@helixcode.com> * 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
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c13
1 files changed, 1 insertions, 12 deletions
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);
}