aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-18 05:33:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-18 05:33:41 +0800
commit8d859008223995a32e606838fc4dedd8893647d3 (patch)
treeff6754bba237083afbc1b54b618b31fdf10a5bcc
parent720babfbfda3e1919804327d2ff546b48a32d5b3 (diff)
downloadgsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.tar
gsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.tar.gz
gsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.tar.bz2
gsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.tar.lz
gsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.tar.xz
gsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.tar.zst
gsoc2013-evolution-8d859008223995a32e606838fc4dedd8893647d3.zip
Add an optimization for when destination folder is the same as the source
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. svn path=/trunk/; revision=13735
-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;