oc-mail: Support attachments with filename extended parameter

The attachments which used a extended parameter for their filename
('filename*=') where silently dropped.
This was because MAPIStore was only looking for no-extended filename
parameter.
The solution is using the 'filename' from the
SOGOExtension of the NSDictionary interface.
This commit is contained in:
Javier Amor García
2015-08-19 18:56:15 +02:00
parent 18f758cb0a
commit ae3ac0a09a
2 changed files with 2 additions and 16 deletions

View File

@@ -1569,9 +1569,7 @@ _compareBodyKeysByPriority (id entry1, id entry2, void *data)
NSDictionary *parameters;
NSUInteger count, max;
parameters = [[bodyInfo objectForKey: @"disposition"]
objectForKey: @"parameterList"];
if ([[parameters objectForKey: @"filename"] length] > 0)
if ([[bodyInfo filename] length] > 0)
{
if ([keyPrefix length] == 0)
keyPrefix = @"0";