aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-driver.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 865b8a00f4..ff4df6b9e8 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-11 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * filter-driver.c (filter_driver_run): Updated to reflect changes to
+ camel_folder_append_message ()
+
2000-07-09 Dan Winship <danw@helixcode.com>
* filter-xml.[ch]: add a "string" type
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index 0ccd70e56b..a6ad9496ba 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -552,15 +552,18 @@ filter_driver_run(FilterDriver *d, CamelFolder *source, CamelFolder *inbox)
char *uid = all->pdata[i], *procuid;
GList *copies, *tmp;
CamelMimeMessage *mm;
+ const CamelMessageInfo *info;
copies = g_hash_table_lookup(p->copies, uid);
procuid = g_hash_table_lookup(p->processed, uid);
+ info = camel_folder_get_message_info (p->source, uid);
+
if (copies || !procuid) {
mm = camel_folder_get_message(p->source, uid, p->ex);
while (copies) {
- camel_folder_append_message(copies->data, mm, p->ex);
+ camel_folder_append_message(copies->data, mm, info ? info->flags : 0, p->ex);
tmp = copies->next;
g_list_free_1(copies);
copies = tmp;
@@ -568,7 +571,7 @@ filter_driver_run(FilterDriver *d, CamelFolder *source, CamelFolder *inbox)
if (!procuid) {
printf("Applying default rule to message %s\n", uid);
- camel_folder_append_message(inbox, mm, p->ex);
+ camel_folder_append_message(inbox, mm, info ? info->flags : 0, p->ex);
}
gtk_object_unref((GtkObject *)mm);