aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder.c
diff options
context:
space:
mode:
author0 <NotZed@Ximian.com>2001-09-11 08:26:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-09-11 08:26:29 +0800
commitec9803b91dc499b6864c1d1a6a8cf615760d7649 (patch)
tree60a113d97c8db6e43902e8feb808e64192ba670b /camel/camel-folder.c
parent2e238a7ebc19c49d607f8e17322540291ed67ad7 (diff)
downloadgsoc2013-evolution-ec9803b91dc499b6864c1d1a6a8cf615760d7649.tar.gz
gsoc2013-evolution-ec9803b91dc499b6864c1d1a6a8cf615760d7649.tar.zst
gsoc2013-evolution-ec9803b91dc499b6864c1d1a6a8cf615760d7649.zip
Progress reporting while moving messages.
2001-09-10 <NotZed@Ximian.com> * camel-folder.c (move_messages_to): Progress reporting while moving messages. * camel-store.c (camel_store_delete_folder): Make sure we remove the folder from our vtrash, if we have it in our opened set, and also remove it from our hashtable. (camel_store_rename_folder): Remove the old folder name from the folder cahce, if it is there. svn path=/trunk/; revision=12758
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);
}
/**