diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-27 09:45:37 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-27 09:45:37 +0800 |
commit | cae25657fa46e7bcfadaafaa8cd77af947a41a4e (patch) | |
tree | 01fa933fa38135754e5a603f3e1e96baf71d9677 /mail/mail-local.c | |
parent | efddd51d3b67fbf48a6c190fa7ddfb0244be5ddf (diff) | |
download | gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar.gz gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar.bz2 gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar.lz gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar.xz gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar.zst gsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.zip |
Updated to reflect changes made to the move/copy API in camel-folder.c
2001-03-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (transfer_messages_transfer): Updated to reflect
changes made to the move/copy API in camel-folder.c
* mail-local.c (reconfigure_folder_reconfigure): Updated this too.
svn path=/trunk/; revision=8961
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r-- | mail/mail-local.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c index 19ed527999..5210c6ee46 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -903,18 +903,14 @@ reconfigure_folder_reconfigure(struct _mail_msg *mm) goto cleanup; } - update_progress(_("Copying messages"), 0.0); - uids = camel_folder_get_uids(fromfolder); - for (i=0;i<uids->len;i++) { - mail_statusf("Copying message %d of %d", i, uids->len); - camel_folder_move_message_to(fromfolder, uids->pdata[i], tofolder, &mm->ex); - if (camel_exception_is_set(&mm->ex)) { - camel_folder_free_uids(fromfolder, uids); - goto cleanup; - } - } - camel_folder_free_uids(fromfolder, uids); - camel_folder_expunge(fromfolder, &mm->ex); + update_progress (_("Copying messages"), 0.0); + uids = camel_folder_get_uids (fromfolder); + camel_folder_move_messages_to (fromfolder, uids, tofolder, &mm->ex); + camel_folder_free_uids (fromfolder, uids); + if (camel_exception_is_set(&mm->ex)) + goto cleanup; + + camel_folder_expunge (fromfolder, &mm->ex); d(printf("delete old mbox ...\n")); camel_store_delete_folder(fromstore, tmpname, &mm->ex); |