--- camel/providers/imap/camel-imap-folder.c +++ camel/providers/imap/camel-imap-folder.c @@ -2256,12 +2256,12 @@ do_copy (CamelFolder *source, GPtrArray *uids, if (response) handle_copyuid_copy_user_tags (response, source, destination); camel_imap_response_free (store, response); + } - if (!camel_exception_is_set(ex) && delete_originals) { - for (i=last;ipdata[i]); - last = uid; - } + if (!camel_exception_is_set(ex) && delete_originals) { + for (i=last;ipdata[i]); + last = uid; } g_free (uidset); }