const GList *images_list,
TnyHeaderFlags priority_flags,
const gchar *references, const gchar *in_reply_to,
+ TnyList *header_pairs,
ModestMailOperationCreateMsgCallback callback,
gpointer userdata);
GList *attachments_list;
GList *images_list;
TnyHeaderFlags priority_flags;
+ TnyList *header_pairs;
ModestMailOperationCreateMsgCallback callback;
gpointer userdata;
} CreateMsgInfo;
info->references, info->in_reply_to,
info->plain_body,
info->attachments_list, &attached,
+ info->header_pairs,
&(priv->error));
} else {
new_msg = modest_tny_msg_new_html_plain (info->to, info->from, info->cc,
info->html_body,
info->plain_body, info->attachments_list,
info->images_list, &attached,
+ info->header_pairs,
&(priv->error));
}
g_list_free (info->attachments_list);
g_list_foreach (info->images_list, (GFunc) g_object_unref, NULL);
g_list_free (info->images_list);
+ g_object_unref (info->header_pairs);
if (info->callback) {
CreateMsgIdleInfo *idle_info;
TnyHeaderFlags priority_flags,
const gchar *references,
const gchar *in_reply_to,
+ TnyList *header_pairs,
ModestMailOperationCreateMsgCallback callback,
gpointer userdata)
{
info->images_list = g_list_copy ((GList *) images_list);
g_list_foreach (info->images_list, (GFunc) g_object_ref, NULL);
info->priority_flags = 0 | priority_flags;
+ info->header_pairs = tny_list_copy (header_pairs);
info->callback = callback;
info->userdata = userdata;
const GList *images_list,
const gchar *references,
const gchar *in_reply_to,
- TnyHeaderFlags priority_flags)
+ TnyHeaderFlags priority_flags,
+ TnyList *header_pairs)
{
ModestMailOperationPrivate *priv = NULL;
SendNewMailInfo *info;
modest_mail_operation_create_msg (self, from, to, cc, bcc, subject, plain_body, html_body,
attachments_list, images_list, priority_flags,
references, in_reply_to,
+ header_pairs,
modest_mail_operation_send_new_mail_cb, info);
}
TnyHeaderFlags priority_flags,
const gchar *references,
const gchar *in_reply_to,
+ TnyList *header_pairs,
SaveToDraftstCallback callback,
gpointer user_data)
{
modest_mail_operation_create_msg (self, from, to, cc, bcc, subject, plain_body, html_body,
attachments_list, images_list, priority_flags,
references, in_reply_to,
+ header_pairs,
modest_mail_operation_save_to_drafts_cb, info);
}