X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-msg.c;h=fac56d578fca0c91125552e7ea8af0a169c17bf2;hp=71414f88ad8df102c211e25010a2c7f899cfe0f6;hb=f7633249cd82c0808fa5a563b48b900e49988db7;hpb=49fafb67c5b4a1d09955811673460803b379dd7f diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index 71414f8..fac56d5 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -62,10 +62,8 @@ modest_tny_msg_new (const gchar* mailto, const gchar* from, const gchar *cc, /* Create new msg */ fact = modest_runtime_get_platform_factory (); new_msg = tny_platform_factory_new_msg (fact); - header = tny_platform_factory_new_header (fact); + header = tny_msg_get_header (new_msg); - /* WARNING: set the header before assign values to it */ - tny_msg_set_header (new_msg, header); tny_header_set_from (TNY_HEADER (header), from); tny_header_set_replyto (TNY_HEADER (header), from); tny_header_set_to (TNY_HEADER (header), mailto);