From: Jose Dapena Paz Date: Fri, 6 Jul 2007 15:59:17 +0000 (+0000) Subject: * src/modest-mail-operation.c: X-Git-Tag: git_migration_finished~2922 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=2ffa5c676784e80a28175a76c87cc2d4c3c33940 * src/modest-mail-operation.c: * Now we store the attachments flag in the header of the message to store. This way the attachment gets correctly stored in local folders (fixes NB#61809). pmo-trunk-r2616 --- diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index ab3e669..114cd7b 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -572,6 +572,9 @@ modest_mail_operation_send_new_mail (ModestMailOperation *self, header = tny_msg_get_header (new_msg); if (priority_flags != 0) tny_header_set_flags (header, priority_flags); + if (attachments_list != NULL) { + tny_header_set_flags (header, TNY_HEADER_FLAG_ATTACHMENTS); + } g_object_unref (G_OBJECT(header)); /* Call mail operation */ @@ -633,6 +636,8 @@ modest_mail_operation_save_to_drafts (ModestMailOperation *self, /* add priority flags */ header = tny_msg_get_header (msg); tny_header_set_flags (header, priority_flags); + if (attachments_list != NULL) + tny_header_set_flags (header, TNY_HEADER_FLAG_ATTACHMENTS); g_object_unref (G_OBJECT(header)); folder = modest_tny_account_get_special_folder (TNY_ACCOUNT (transport_account), TNY_FOLDER_TYPE_DRAFTS);