* src/modest-ui-actions.[ch]:
[modest] / src / modest-mail-operation.h
index e7e4081..d2739b9 100644 (file)
@@ -150,6 +150,37 @@ void    modest_mail_operation_send_new_mail   (ModestMailOperation *self,
                                               const GList *attachments_list,
                                               TnyHeaderFlags priority_flags);
 
+
+/**
+ * modest_mail_operation_save_to_drafts:
+ * @self: a #ModestMailOperation
+ * @transport_account: a non-NULL #TnyTransportAccount
+ * @from: the email address of the mail sender
+ * @to: a non-NULL email address of the mail receiver
+ * @cc: a comma-separated list of email addresses where to send a carbon copy
+ * @bcc: a comma-separated list of email addresses where to send a blind carbon copy
+ * @subject: the subject of the new mail
+ * @plain_body: the plain text body of the new mail.
+ * @html_body: the html version of the body of the new mail. If NULL, the mail will
+ *             be sent with the plain body only.
+ * @attachments_list: a #GList of attachments, each attachment must be a #TnyMimePart
+ * 
+ * Save a mail message to drafts using the provided
+ * #TnyTransportAccount. This operation is synchronous, so the
+ * #ModestMailOperation should not be added to any
+ * #ModestMailOperationQueue
+  **/
+void    modest_mail_operation_save_to_drafts   (ModestMailOperation *self,
+                                               TnyTransportAccount *transport_account,
+                                               const gchar *from,
+                                               const gchar *to,
+                                               const gchar *cc,
+                                               const gchar *bcc,
+                                               const gchar *subject,
+                                               const gchar *plain_body,
+                                               const gchar *html_body,
+                                               const GList *attachments_list,
+                                               TnyHeaderFlags priority_flags);
 /**
  * modest_mail_operation_update_account:
  * @self: a #ModestMailOperation