#include <tny-folder-store-query.h>
#include <tny-camel-stream.h>
#include <tny-simple-list.h>
+#include <tny-send-queue.h>
#include <camel/camel-stream-mem.h>
#include <glib/gi18n.h>
#include <modest-tny-account.h>
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);
/* 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);
static TnyMsgView* modest_tny_platform_factory_new_msg_view (TnyPlatformFactory *self);
static TnyMsg* modest_tny_platform_factory_new_msg (TnyPlatformFactory *self);
static TnyMimePart* modest_tny_platform_factory_new_mime_part (TnyPlatformFactory *self);
-static TnyHeader* modest_tny_platform_factory_new_header (TnyPlatformFactory *self);
-
/* list my signals */
enum {
klass->new_msg_view_func = modest_tny_platform_factory_new_msg_view;
klass->new_msg_func = modest_tny_platform_factory_new_msg;
klass->new_mime_part_func = modest_tny_platform_factory_new_mime_part;
- klass->new_header_func = modest_tny_platform_factory_new_header;
-
return;
}
}
-static TnyHeader*
-modest_tny_platform_factory_new_header (TnyPlatformFactory *self)
-{
- return tny_camel_header_new ();
-}