diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-08-25 03:52:24 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-08-25 03:52:24 +0800 |
commit | 37471a4d5261636aea1a330ed2c42db9e665a9f9 (patch) | |
tree | d69efc71dc628fc3acc1d1afbf0c1a89b6ea3c31 /mail/mail-tools.c | |
parent | ba232a706ec696459290430ffd35b50536b80ce8 (diff) | |
download | gsoc2013-evolution-37471a4d5261636aea1a330ed2c42db9e665a9f9.tar.gz gsoc2013-evolution-37471a4d5261636aea1a330ed2c42db9e665a9f9.tar.zst gsoc2013-evolution-37471a4d5261636aea1a330ed2c42db9e665a9f9.zip |
Start adding progress info; make flag_all_messages camel-safe; make the no new mail dialog more descriptive.
svn path=/trunk/; revision=5016
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r-- | mail/mail-tools.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c index d082409468..42eb6e1912 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -260,6 +260,8 @@ mail_tool_move_folder_contents (CamelFolder *source, CamelFolder *dest, gboolean /* Get all uids of source */ + mail_op_set_message ("Examining %s", source->full_name); + uids = camel_folder_get_uids (source); printf ("mail_tool_move_folder: got %d messages in source\n", uids->len); @@ -305,6 +307,11 @@ mail_tool_move_folder_contents (CamelFolder *source, CamelFolder *dest, gboolean for (i = 0; i < uids->len; i++) { CamelMimeMessage *msg; const CamelMessageInfo *info; + + /* Info */ + + mail_op_set_message ("Retrieving message %d of %d", i, uids->len); + /* Get the message */ msg = camel_folder_get_message (source, uids->pdata[i], ex); @@ -315,6 +322,8 @@ mail_tool_move_folder_contents (CamelFolder *source, CamelFolder *dest, gboolean /* Append it to dest */ + mail_op_set_message ("Writing message %d of %d", i, uids->len); + info = camel_folder_get_message_info (source, uids->pdata[i]); camel_folder_append_message (dest, msg, info, ex); if (camel_exception_is_set (ex)) { @@ -340,6 +349,8 @@ mail_tool_move_folder_contents (CamelFolder *source, CamelFolder *dest, gboolean } else camel_folder_free_uids (source, uids); + mail_op_set_message ("Saving changes to %s", source->full_name); + camel_folder_sync (source, TRUE, ex); cleanup: |