X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.c;h=c902b661443dc6a7000783db061746d89620f20c;hp=2984cdd61358c2b3cc0f3442b61861805b995f97;hb=f7633249cd82c0808fa5a563b48b900e49988db7;hpb=49fafb67c5b4a1d09955811673460803b379dd7f diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 2984cdd..c902b66 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -312,9 +313,7 @@ create_reply_forward_mail (TnyMsg *msg, const gchar *from, gboolean is_reply, gu g_object_unref (G_OBJECT(body)); /* Fill the header */ - new_header = TNY_HEADER (tny_platform_factory_new_header - (modest_runtime_get_platform_factory())); - tny_msg_set_header (new_msg, new_header); + new_header = tny_msg_get_header (new_msg); tny_header_set_from (new_header, from); tny_header_set_replyto (new_header, from);