oc-mail: Better management of nested multipart types

Instead of treating all the message either as alternative or mixed with
this changeset the MIME type of the parent part is used.
This allows a correct disposition of the message in the cases when
nested multiparts elements are used.
Also in mixed parts we convert between plain text and HTML as needed.
This commit is contained in:
Javier Amor García committed 2016-02-22 17:19:44 +01:00
1 parent e1b1812364
commit f388d180ae
4 files changed
+93 -43

No files matched your search

+1 -1
View File
@@ -44,11 +44,11 @@
NSMutableDictionary *bodyPartsEncodings;
NSMutableDictionary *bodyPartsCharsets;
NSMutableDictionary *bodyPartsMimeTypes;
NSMutableDictionary *bodyPartsMixed;
NSString *headerCharset;
NSString *headerMimeType;
BOOL bodySetup;
BOOL multipartMixed;
NSArray *bodyContent;
BOOL fetchedAttachments;