#define __MODEST_TNY_MSG_H__
/**
+ * modest_tny_msg_new:
+ * @mailto: recipient for the message
+ * @mailfrom: sender of this message
+ * @cc: Cc: address for the message
+ * @bcc: Bcc: address for the message
+ * @subject: subject for the messdage
+ * @body: body for the message
+ * @attachments: a list of attachments (local URIs)
+ *
+ * create a new TnyMsg with the given parameters
+ *
+ * Returns: a new TnyMsg (free with g_object_unref)
+ */
+TnyMsg* modest_tny_msg_new (const gchar* mailto, const gchar* mailfrom, const gchar *cc,
+ const gchar *bcc, const gchar* subject, const gchar *body,
+ GSList *attachments);
+
+/**
* modest_tny_msg_find_body_part:
* @self: a message
* @want_html: prefer HTML-part when there are multiple body parts?
/**
- * modest_tny_msg_get_nth_part:
- * @self: a message
- * @index: number (1-based) of the part to retrieve
- *
- * search for the nth (mime) part in the message
- *
- * Returns: the TnyMsgMimePart for the found part, or NULL if no
- * matching part is foundi; must be unref'd
- */
-TnyMimePart* modest_tny_msg_find_nth_part (TnyMsg *msg, gint index);
-
-
-/**
* modest_tny_msg_find_body:
* @self:
* @want_html: