aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/templates/templates.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 /plugins/templates/templates.c
parent63057a9a602ce6fb195275ca8ede0244261ad926 (diff)
downloadgsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.gz
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.tar.zst
gsoc2013-evolution-58727dbb22ceeaf950ba7931fd516b112689b5a6.zip
Kill mail_append_mail().
Use e_mail_folder_append_message() instead.
Diffstat (limited to 'plugins/templates/templates.c')
-rw-r--r--plugins/templates/templates.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c
index 815ee69882..bca45f040f 100644
--- a/plugins/templates/templates.c
+++ b/plugins/templates/templates.c
@@ -31,6 +31,7 @@
#include <e-util/e-config.h>
+#include <mail/e-mail-folder-utils.h>
#include <mail/e-mail-local.h>
#include <mail/e-mail-reader.h>
#include <mail/e-mail-session.h>
@@ -710,7 +711,10 @@ got_message_draft_cb (EMsgComposer *composer,
camel_message_info_set_flags (
info, CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_DRAFT, ~0);
- mail_append_mail (folder, message, info, NULL, composer);
+ /* FIXME No async callback, so... hope for the best? */
+ e_mail_folder_append_message (
+ folder, message, info, G_PRIORITY_DEFAULT,
+ NULL, (GAsyncReadyCallback) NULL, NULL);
g_object_unref (message);
}