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/ChangeLog | 5 +++++ camel/camel-filter-driver.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 0e91f8b820..9d7314358e 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +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. + 2001-10-17 * providers/imap/camel-imap-store.c (get_folder_info_online): 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