From 55b639a2c4f51313c6912e2058e3992dbfaa74b5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 13 Jan 2001 07:44:17 +0000 Subject: Moved p->copied to the inner part of the loop so that in the case of a 2001-01-13 Jeffrey Stedfast * 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 --- filter/ChangeLog | 8 ++++++++ filter/filter-driver.c | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'filter') diff --git a/filter/ChangeLog b/filter/ChangeLog index 8d2ed5f462..a77c234aac 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,11 @@ +2001-01-13 Jeffrey Stedfast + + * 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. + 2001-01-10 Jeffrey Stedfast * filtertypes.xml: Changed Priority to Score. 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))); -- cgit v1.2.3