aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r--camel/camel-folder.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index ffd36cb730..dc93443c7c 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -28,12 +28,13 @@
#endif
#include <string.h>
-#include <camel/camel-folder.h>
-#include <camel/camel-exception.h>
+#include "camel-folder.h"
+#include "camel-exception.h"
#include "camel-store.h"
#include "camel-mime-message.h"
#include "string-utils.h"
#include "e-util/e-memory.h"
+#include "camel-operation.h"
#include "camel-private.h"
@@ -1203,9 +1204,15 @@ static void
move_messages_to (CamelFolder *source, GPtrArray *uids, CamelFolder *dest, CamelException *ex)
{
int i;
+
+ camel_operation_start(NULL, _("Moving messages"));
- for (i = 0; i < uids->len && !camel_exception_is_set (ex); i++)
+ for (i = 0; i < uids->len && !camel_exception_is_set (ex); i++) {
move_message_to (source, uids->pdata[i], dest, ex);
+ camel_operation_progress(NULL, i * 100 / uids->len);
+ }
+
+ camel_operation_end(NULL);
}
/**