diff options
author | 2013-01-25 23:26:32 -0800 | |
---|---|---|
committer | 2013-01-25 23:26:32 -0800 | |
commit | 16eb46b8ef4ae3e14f7b7715b56400f343cfe27c (patch) | |
tree | 702fa691c09396410e5c0d9e886c65f84be843fd | |
parent | dc3a983fe8aff7f39eab99f9fa99f54d66556ac0 (diff) |
fixed conversion of MIME parts
-rw-r--r-- | src/core/imap/MCIMAPPart.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPPart.cc b/src/core/imap/MCIMAPPart.cc index 110c8fa0..8f7e1e0e 100644 --- a/src/core/imap/MCIMAPPart.cc +++ b/src/core/imap/MCIMAPPart.cc @@ -166,6 +166,7 @@ IMAPMessagePart * IMAPPart::attachmentWithIMAPBody1PartMessage(struct mailimap_b subAttachment = attachmentWithIMAPBodyInternal(message->bd_body, nextPartID); attachment->setMainPart(subAttachment); + attachment->setMimeType(MCSTR("message/rfc822")); return (IMAPMessagePart *) attachment->autorelease(); } @@ -277,6 +278,7 @@ IMAPMultipart * IMAPPart::attachmentWithIMAPBodyMultipart(struct mailimap_body_t else if (strcasecmp(body_mpart->bd_media_subtype, "related") == 0) { attachment->setPartType(PartTypeMultipartRelated); } + attachment->setMimeType(String::stringWithUTF8Format("multipart/%s", body_mpart->bd_media_subtype)); attachment->setParts(attachments); attachments->release(); |