aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index a2fd820dfa..d7edad424b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -4,6 +4,7 @@
/*
* Author :
* Dan Winship <danw@helixcode.com>
+ * Jeffrey Stedfast <fejj@helixcode.com>
* Peter Williams <peterw@helixcode.com>
*
* Copyright 2000 Helix Code, Inc. (http://www.helixcode.com)
@@ -346,6 +347,13 @@ do_filter_ondemand (gpointer in_data, gpointer op_data, CamelException *ex)
free_info = TRUE;
}
+ /* check if this message is marked for deletion */
+ if (info->flags & CAMEL_MESSAGE_DELETED) {
+ /* don't filter messages which have been marked as deleted */
+ camel_object_unref (CAMEL_OBJECT (message));
+ continue;
+ }
+
filtered = filter_driver_run (driver, message, info, NULL,
FILTER_SOURCE_DEMAND, ex);