mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 14:46:24 +00:00
Monotone-Parent: 2d84c830169d9e6fc80c66cebbaee3d4903fdb88
Monotone-Revision: 44e710d477fe4c00e417c926d9eecec7dd1a12c1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-13T21:53:04 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -331,28 +331,26 @@ static EOQualifier *nonDeletedQualifier = nil;
|
||||
case PR_BODY_UNICODE:
|
||||
{
|
||||
NSMutableArray *keys;
|
||||
NSArray *acceptedTypes;
|
||||
|
||||
child = [self lookupChild: childKey];
|
||||
|
||||
acceptedTypes = [NSArray arrayWithObjects: @"text/plain",
|
||||
@"text/html", nil];
|
||||
keys = [NSMutableArray array];
|
||||
[child addRequiredKeysOfStructure: [child bodyStructure]
|
||||
path: @"" toArray: keys
|
||||
acceptedTypes: acceptedTypes];
|
||||
if ([keys count] == 0 || [keys count] == 2)
|
||||
acceptedTypes: [NSArray arrayWithObject:
|
||||
@"text/html"]];
|
||||
if ([keys count] > 0)
|
||||
{
|
||||
*data = NULL;
|
||||
rc = MAPI_E_NOT_FOUND;
|
||||
}
|
||||
else
|
||||
{
|
||||
acceptedTypes = [NSArray arrayWithObject: @"text/plain"];
|
||||
[keys removeAllObjects];
|
||||
[child addRequiredKeysOfStructure: [child bodyStructure]
|
||||
path: @"" toArray: keys
|
||||
acceptedTypes: acceptedTypes];
|
||||
acceptedTypes: [NSArray arrayWithObject:
|
||||
@"text/plain"]];
|
||||
if ([keys count] > 0)
|
||||
{
|
||||
id result;
|
||||
|
||||
Reference in New Issue
Block a user