aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-driver.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-13 15:44:17 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-13 15:44:17 +0800
commit55b639a2c4f51313c6912e2058e3992dbfaa74b5 (patch)
tree2e9795af6f114fccf18741811058747c1735056a /filter/filter-driver.c
parent391b62599222f023593b51c10fc0aec26a535f57 (diff)
downloadgsoc2013-evolution-55b639a2c4f51313c6912e2058e3992dbfaa74b5.tar.gz
gsoc2013-evolution-55b639a2c4f51313c6912e2058e3992dbfaa74b5.tar.zst
gsoc2013-evolution-55b639a2c4f51313c6912e2058e3992dbfaa74b5.zip
Moved p->copied to the inner part of the loop so that in the case of a
2001-01-13 Jeffrey Stedfast <fejj@ximian.com> * filter-driver.c (do_copy): Moved p->copied to the inner part of the loop so that in the case of a folder not existing, it doesn't think that the message was already copied to some place and thus not save it to the Inbox. (do_move): Same. svn path=/trunk/; revision=7478
Diffstat (limited to 'filter/filter-driver.c')
-rw-r--r--filter/filter-driver.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/filter/filter-driver.c b/filter/filter-driver.c
index 502fe7ebcc..2c5c25c780 100644
--- a/filter/filter-driver.c
+++ b/filter/filter-driver.c
@@ -337,7 +337,7 @@ do_copy (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver *d
int i;
d(fprintf (stderr, "copying message...\n"));
- p->copied = TRUE;
+
for (i = 0; i < argc; i++) {
if (argv[i]->type == ESEXP_RES_STRING) {
/* open folders we intent to copy to */
@@ -349,6 +349,7 @@ do_copy (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver *d
if (!outbox)
continue;
+ p->copied = TRUE;
camel_folder_append_message (outbox, p->message, p->info, p->ex);
service_url = camel_service_get_url (CAMEL_SERVICE (camel_folder_get_parent_store (outbox)));
@@ -367,8 +368,7 @@ do_move (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver *d
int i;
d(fprintf (stderr, "moving message...\n"));
- p->copied = TRUE;
- p->deleted = TRUE; /* a 'move' is a copy & delete */
+
for (i = 0; i < argc; i++) {
if (argv[i]->type == ESEXP_RES_STRING) {
/* open folders we intent to move to */
@@ -379,7 +379,10 @@ do_move (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterDriver *d
outbox = open_folder (driver, folder);
if (!outbox)
continue;
-
+
+ p->copied = TRUE;
+ p->deleted = TRUE; /* a 'move' is a copy & delete */
+
camel_folder_append_message (outbox, p->message, p->info, p->ex);
service_url = camel_service_get_url (CAMEL_SERVICE (camel_folder_get_parent_store (outbox)));