aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-27 09:45:37 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-27 09:45:37 +0800
commitcae25657fa46e7bcfadaafaa8cd77af947a41a4e (patch)
tree01fa933fa38135754e5a603f3e1e96baf71d9677 /mail/mail-ops.c
parentefddd51d3b67fbf48a6c190fa7ddfb0244be5ddf (diff)
downloadgsoc2013-evolution-cae25657fa46e7bcfadaafaa8cd77af947a41a4e.tar.gz
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-ops.c')
-rw-r--r--mail/mail-ops.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 0334ab564a..0047afc0b9 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -838,15 +838,15 @@ static void transfer_messages_transfer(struct _mail_msg *mm)
CamelFolder *dest;
int i;
char *desc;
- void (*func) (CamelFolder *, const char *,
+ void (*func) (CamelFolder *, GPtrArray *,
CamelFolder *,
CamelException *);
if (m->delete) {
- func = camel_folder_move_message_to;
+ func = camel_folder_move_messages_to;
desc = _("Moving");
} else {
- func = camel_folder_copy_message_to;
+ func = camel_folder_copy_messages_to;
desc = _("Copying");
}
@@ -856,16 +856,9 @@ static void transfer_messages_transfer(struct _mail_msg *mm)
camel_folder_freeze (m->source);
camel_folder_freeze (dest);
-
- for (i = 0; i < m->uids->len; i++) {
- mail_statusf(_("%s message %d of %d (uid \"%s\")"), desc,
- i + 1, m->uids->len, (char *)m->uids->pdata[i]);
-
- (func) (m->source, m->uids->pdata[i], dest, &mm->ex);
- if (camel_exception_is_set (&mm->ex))
- break;
- }
-
+
+ (func) (m->source, m->uids->pdata[i], dest, &mm->ex);
+
camel_folder_thaw(m->source);
camel_folder_thaw(dest);
camel_object_unref((CamelObject *)dest);