aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-filter-driver.c3
2 files changed, 8 insertions, 0 deletions
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 <fejj@ximian.com>
+
+ * camel-filter-driver.c (do_copy): Add an optimization for when
+ destination folder is the same as the source folder.
+
2001-10-17 <NotZed@Ximian.com>
* 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;