aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-31 02:23:01 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:19 +0800
commit58727dbb22ceeaf950ba7931fd516b112689b5a6 (patch)
tree4a013e3a33478cd0c6298cb54e47b09158264959 /mail/em-composer-utils.c
parent63057a9a602ce6fb195275ca8ede0244261ad926 (diff)
downloadgsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.gz
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.bz2
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.lz
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.xz
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.zst
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.zip
Kill mail_append_mail().
Use e_mail_folder_append_message() instead.
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index f084155362..02eb039916 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1665,15 +1665,13 @@ em_utils_handle_receipt (EMailSession *session,
static void
em_utils_receipt_done (CamelFolder *folder,
- CamelMimeMessage *msg,
- CamelMessageInfo *info,
- gint queued,
- const gchar *appended_uid,
- gpointer data)
+ GAsyncResult *result,
+ EMailSession *session)
{
- EMailSession *session = E_MAIL_SESSION (data);
+ /* FIXME Poor error handling. */
+ if (!e_mail_folder_append_message_finish (folder, result, NULL, NULL))
+ return;
- camel_message_info_free (info);
mail_send (session);
}
@@ -1812,8 +1810,13 @@ em_utils_send_receipt (EMailSession *session,
out_folder = e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_OUTBOX);
camel_message_info_set_flags (
info, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
- mail_append_mail (
- out_folder, receipt, info, em_utils_receipt_done, session);
+
+ /* FIXME Pass a GCancellable. */
+ e_mail_folder_append_message (
+ out_folder, receipt, info, G_PRIORITY_DEFAULT, NULL,
+ (GAsyncReadyCallback) em_utils_receipt_done, session);
+
+ camel_message_info_free (info);
}
/* Replying to messages... */