From 8d859008223995a32e606838fc4dedd8893647d3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 17 Oct 2001 21:33:41 +0000 Subject: Add an optimization for when destination folder is the same as the source 2001-10-17 Jeffrey Stedfast * camel-filter-driver.c (do_copy): Add an optimization for when destination folder is the same as the source folder. svn path=/trunk/; revision=13735 --- camel/camel-filter-driver.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'camel/camel-filter-driver.c') diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c index 5e58fc7bc8..3c712db7c5 100644 --- a/camel/camel-filter-driver.c +++ b/camel/camel-filter-driver.c @@ -371,6 +371,9 @@ do_copy (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 v1.2.3