From 26149933266aea9e787e07d4cc312d6b06dc0d65 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 8 Sep 2000 03:57:14 +0000 Subject: Now takes a CamelMessageInfo argument in preparation for handling scoring 2000-09-07 Jeffrey Stedfast * filter-driver.c (filter_driver_run): Now takes a CamelMessageInfo argument in preparation for handling scoring svn path=/trunk/; revision=5251 --- filter/ChangeLog | 5 +++++ filter/filter-driver.c | 4 ++-- filter/filter-driver.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index 06c225a92d..c2af2c0619 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2000-09-07 Jeffrey Stedfast + + * filter-driver.c (filter_driver_run): Now takes a + CamelMessageInfo argument in preparation for handling scoring + 2000-09-07 Jeffrey Stedfast * filter-driver.c (filter_driver_run): Modified to return a diff --git a/filter/filter-driver.c b/filter/filter-driver.c index a6d9d1f3be..e7c733b6a7 100644 --- a/filter/filter-driver.c +++ b/filter/filter-driver.c @@ -374,7 +374,7 @@ free_key (gpointer key, gpointer value, gpointer user_data) #endif gboolean -filter_driver_run (FilterDriver *driver, CamelMimeMessage *message, +filter_driver_run (FilterDriver *driver, CamelMimeMessage *message, CamelMessageInfo *info, CamelFolder *inbox, enum _filter_source_t sourcetype, gpointer unhook_func, gpointer unhook_data, gboolean self_destruct, CamelException *ex) @@ -394,7 +394,7 @@ filter_driver_run (FilterDriver *driver, CamelMimeMessage *message, p->terminated = FALSE; p->deleted = FALSE; p->message = message; - p->info = g_new0 (CamelMessageInfo, 1); + p->info = info; /* setup runtime data */ p->folders = g_hash_table_new (g_str_hash, g_str_equal); diff --git a/filter/filter-driver.h b/filter/filter-driver.h index a2ac96989c..3ab6ec8986 100644 --- a/filter/filter-driver.h +++ b/filter/filter-driver.h @@ -54,7 +54,7 @@ FilterDriver *filter_driver_new (FilterContext *ctx, FilterGetFolderFunc fe /*void filter_driver_set_global(FilterDriver *, const char *name, const char *value);*/ /* filter a message - returns TRUE if the message was filtered into some location other than inbox */ -gboolean filter_driver_run (FilterDriver *driver, CamelMimeMessage *message, +gboolean filter_driver_run (FilterDriver *driver, CamelMimeMessage *message, CamelMessageInfo *info, CamelFolder *inbox, enum _filter_source_t sourcetype, gpointer unhook_func, gpointer unhook_data, gboolean self_destruct, CamelException *ex); -- cgit