(feat) initial S/MIME support for EAS (#3327)

This commit is contained in:
Ludovic Marcotte committed 2015-10-15 15:32:15 -04:00
1 parent ddf97ebb13
commit 020fa78848
6 files changed
+247 -36

No files matched your search

+14 -2
View File
@@ -389,6 +389,10 @@ static BOOL debugSoParts = NO;
[[[info valueForKey: @"subtype"] lowercaseString] isEqualToString: @"calendar"])
return info;
if ([[[info valueForKey: @"type"] lowercaseString] isEqualToString: @"application"] &&
[[[info valueForKey: @"subtype"] lowercaseString] isEqualToString: @"pkcs7-mime"])
return info;
/*
For each path component, eg 1,1,3
@@ -810,7 +814,7 @@ static BOOL debugSoParts = NO;
NSMutableDictionary *currentPart;
NSString *newPath;
NSArray *subparts;
NSString *type;
NSString *type, *subtype;
NSUInteger i;
type = [[part objectForKey: @"type"] lowercaseString];
@@ -833,7 +837,15 @@ static BOOL debugSoParts = NO;
else
{
if (!path)
path = @"1";
{
path = @"1";
// We set the path to 0 in case of a smime mail if not provided.
subtype = [[part objectForKey: @"subtype"] lowercaseString];
if ([subtype isEqualToString: @"pkcs7-mime"])
path = @"0";
}
[self _fetchFileAttachmentKey: part
intoArray: keys
withPath: path