aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-driver.c4
-rw-r--r--filter/filter-driver.h2
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,5 +1,10 @@
2000-09-07 Jeffrey Stedfast <fejj@helixcode.com>
+ * filter-driver.c (filter_driver_run): Now takes a
+ CamelMessageInfo argument in preparation for handling scoring
+
+2000-09-07 Jeffrey Stedfast <fejj@helixcode.com>
+
* filter-driver.c (filter_driver_run): Modified to return a
boolean value specifying whether or not the message was filtered
into a folder other than the default. The default mailbox can now
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);