aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-03 06:45:24 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-03 06:45:24 +0800
commit378422f6e180da04a033a2783d7806a848f90385 (patch)
treee8fdedc83622e2cebb693fcc3b9f5de1305c056a /mail/mail-ops.c
parent3cfa7824a8c01c979621965131319a8073f064ed (diff)
downloadgsoc2013-evolution-378422f6e180da04a033a2783d7806a848f90385.tar.gz
gsoc2013-evolution-378422f6e180da04a033a2783d7806a848f90385.tar.zst
gsoc2013-evolution-378422f6e180da04a033a2783d7806a848f90385.zip
Pass an empty flags argument to mail_transfer_messages - destination
2001-10-02 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (transfer_msg): Pass an empty flags argument to mail_transfer_messages - destination folder should already be created by this point. * folder-browser.c (message_list_drag_data_received): Pass an empty flags argument to mail_transfer_messages. (selection_received): Same. * component-factory.c (xfer_folder): Pass the CREATE flag to mail_transfer_messages() so that the dest folder gets created. (destination_folder_handle_drop): Update for mail-ops API change. * mail-ops.c (mail_transfer_messages): Now takes a dest_flags argument that it passes along to mail_tool_uri_to_folder when opening the destination folder. svn path=/trunk/; revision=13357
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 9f55bd2f0f..5c536d2adc 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -848,6 +848,7 @@ struct _transfer_msg {
GPtrArray *uids;
gboolean delete;
char *dest_uri;
+ guint32 dest_flags;
void (*done)(gboolean ok, void *data);
void *data;
@@ -881,7 +882,7 @@ transfer_messages_transfer (struct _mail_msg *mm)
desc = _("Copying");
}
- dest = mail_tool_uri_to_folder (m->dest_uri, 0, &mm->ex);
+ dest = mail_tool_uri_to_folder (m->dest_uri, m->dest_flags, &mm->ex);
if (camel_exception_is_set (&mm->ex))
return;
@@ -951,6 +952,7 @@ void
mail_transfer_messages (CamelFolder *source, GPtrArray *uids,
gboolean delete_from_source,
const char *dest_uri,
+ guint32 dest_flags,
void (*done) (gboolean ok, void *data),
void *data)
{
@@ -966,6 +968,7 @@ mail_transfer_messages (CamelFolder *source, GPtrArray *uids,
m->uids = uids;
m->delete = delete_from_source;
m->dest_uri = g_strdup (dest_uri);
+ m->dest_flags = dest_flags;
m->done = done;
m->data = data;