diff options
author | Not Zed <NotZed@Ximian.com> | 2001-08-29 22:05:55 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-08-29 22:05:55 +0800 |
commit | e799ca6eda998302e3b55d159e16eb77f5e654a0 (patch) | |
tree | ae7e35f68d570e5a78f1c130dd38fda4ad898832 | |
parent | 24a4d864f0ed2ea58e60e1efd83d817418896a1d (diff) | |
download | gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.tar gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.tar.gz gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.tar.bz2 gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.tar.lz gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.tar.xz gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.tar.zst gsoc2013-evolution-e799ca6eda998302e3b55d159e16eb77f5e654a0.zip |
Add progress reporting to deleting messages. Dont change the calculation
2001-08-29 Not Zed <NotZed@Ximian.com>
* providers/pop3/camel-pop3-folder.c (pop3_sync): Add progress
reporting to deleting messages. Dont change the calculation to a
bloody float. Bug #6189.
svn path=/trunk/; revision=12512
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/pop3/camel-pop3-folder.c | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index a84dd18d4c..5e7c413714 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2001-08-29 Not Zed <NotZed@Ximian.com> + + * providers/pop3/camel-pop3-folder.c (pop3_sync): Add progress + reporting to deleting messages. Dont change the calculation to a + bloody float. Bug #6189. + 2001-08-28 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (crypto_exec_with_passwd): Initialize buf diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c index cee18d56ad..d18680dddd 100644 --- a/camel/providers/pop3/camel-pop3-folder.c +++ b/camel/providers/pop3/camel-pop3-folder.c @@ -255,16 +255,23 @@ pop3_sync (CamelFolder *folder, gboolean expunge, CamelException *ex) pop3_folder = CAMEL_POP3_FOLDER (folder); pop3_store = CAMEL_POP3_STORE (folder->parent_store); + + camel_operation_start(NULL, _("Expunging deleted messages")); for (i = 0; i < pop3_folder->uids->len; i++) { + camel_operation_progress(NULL, (i+1) * 100 / pop3_folder->uids->len); if (pop3_folder->flags[i] & CAMEL_MESSAGE_DELETED) { status = camel_pop3_command (pop3_store, NULL, ex, "DELE %d", i + 1); - if (status != CAMEL_POP3_OK) + if (status != CAMEL_POP3_OK) { + camel_operation_end(NULL); return; + } } } - + + camel_operation_end(NULL); + camel_pop3_store_expunge (pop3_store, ex); } |