aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-17 07:10:12 +0800
committerDan Winship <danw@src.gnome.org>2000-06-17 07:10:12 +0800
commit3069f4c5d1a2d0a2a8e3f6afd2a446493fab14d5 (patch)
tree6536ade384f32ce9b79012b4efc2908c03953e15
parent174d7c38d1ff4d1511301b1aa2effa87f7b6bc7f (diff)
downloadgsoc2013-evolution-3069f4c5d1a2d0a2a8e3f6afd2a446493fab14d5.tar.gz
gsoc2013-evolution-3069f4c5d1a2d0a2a8e3f6afd2a446493fab14d5.tar.zst
gsoc2013-evolution-3069f4c5d1a2d0a2a8e3f6afd2a446493fab14d5.zip
Update for Camel flag handling changes.
* filter-driver.c (do_delete, filter_driver_run): Update for Camel flag handling changes. svn path=/trunk/; revision=3599
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/filter-driver.c10
2 files changed, 7 insertions, 8 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index c8493d12c1..12cb41c142 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-16 Dan Winship <danw@helixcode.com>
+
+ * filter-driver.c (do_delete, filter_driver_run): Update for Camel
+ flag handling changes.
+
2000-06-15 Dan Winship <danw@helixcode.com>
* filter-driver.c (open_folder, close_folder): Update for
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index 95078a8144..4a445e75be 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -362,15 +362,9 @@ do_delete(struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver *
printf("doing delete\n");
m = p->matches;
while (m) {
- CamelMimeMessage *mm;
-
printf(" %s\n", (char *)m->data);
- mm = camel_folder_get_message_by_uid(p->source, m->data, p->ex);
- if (mm) {
- camel_mime_message_set_flags(mm, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED);
- gtk_object_unref((GtkObject *)mm);
- }
+ camel_folder_set_message_flags (p->source, m->data, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED, p->ex);
m = m->next;
}
@@ -614,8 +608,8 @@ filter_driver_run(FilterDriver *d, CamelFolder *source, CamelFolder *inbox)
mm = camel_folder_get_message_by_uid(p->source, all->pdata[i], p->ex);
camel_folder_append_message(inbox, mm, p->ex);
- camel_mime_message_set_flags(mm, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED);
gtk_object_unref((GtkObject *)mm);
+ camel_folder_set_message_flags(p->source, all->pdata[i], CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED, p->ex);
}
} else {
camel_folder_delete_message_by_uid(p->source, uid, p->ex);