diff options
author | Dmitry Isaikin <isaikin-dmitry@yandex.ru> | 2016-06-06 04:28:53 +0400 |
---|---|---|
committer | HoĆ V. DINH <dinh.viet.hoa@gmail.com> | 2016-06-05 17:28:53 -0700 |
commit | eeed76e48c830fe742eadd435682f3b1e6036f83 (patch) | |
tree | 36bad63fccde47e6cdecb7033f65a3d75e1bbb71 /src/core/rfc822/MCAttachment.cpp | |
parent | 6dbe79ccf3f085da9a195ee3f9a59cb4449f6505 (diff) |
Add possibility of fetching message attachment by chunks and store it to file. (#1438)
Diffstat (limited to 'src/core/rfc822/MCAttachment.cpp')
-rw-r--r-- | src/core/rfc822/MCAttachment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/rfc822/MCAttachment.cpp b/src/core/rfc822/MCAttachment.cpp index e6ebc9c9..0881c9a8 100644 --- a/src/core/rfc822/MCAttachment.cpp +++ b/src/core/rfc822/MCAttachment.cpp @@ -548,12 +548,12 @@ Attachment * Attachment::attachmentWithSingleMIME(struct mailmime * mime) mailmime_single_fields_init(&single_fields, mime->mm_mime_fields, mime->mm_content_type); encoding = encodingForMIMEEncoding(single_fields.fld_encoding, data->dt_encoding); - + Data * mimeData; mimeData = Data::dataWithBytes(bytes, (unsigned int) length); mimeData = mimeData->decodedDataUsingEncoding(encoding); result->setData(mimeData); - + str = get_content_type_str(mime->mm_content_type); result->setMimeType(String::stringWithUTF8Characters(str)); free(str); |