From 77e62d04c7530b29b1f27c5e0bdfb005dfa16058 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 23 Jul 2001 16:59:17 +0000 Subject: Slight fix for when source == destination (we don't want to do this action 2001-07-23 Jeffrey Stedfast * camel-filter-driver.c (do_move): Slight fix for when source == destination (we don't want to do this action because on-demand filtering would then delete the messages it supposedly "moved"). svn path=/trunk/; revision=11304 --- camel/ChangeLog | 6 ++++++ camel/camel-filter-driver.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index 75cc35ee97..63601069f2 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2001-07-23 Jeffrey Stedfast + + * camel-filter-driver.c (do_move): Slight fix for when source == + destination (we don't want to do this action because on-demand + filtering would then delete the messages it supposedly "moved"). + 2001-07-23 Not Zed * providers/smtp/camel-smtp-transport.c (smtp_auth, smtp_helo, diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c index c77c2d90b2..affc77b858 100644 --- a/camel/camel-filter-driver.c +++ b/camel/camel-filter-driver.c @@ -407,6 +407,9 @@ do_move (struct _ESExp *f, int argc, struct _ESExpResult **argv, CamelFilterDriv if (!outbox) break; + if (outbox == p->source) + break; + if (p->uid && p->source && camel_folder_has_summary_capability (p->source)) { GPtrArray *uids; -- cgit