mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
(fix) fixed EAS search operation
This commit is contained in:
@@ -3041,7 +3041,7 @@ void handle_eas_terminate(int signum)
|
||||
- (void) processSearchMailbox: (id <DOMElement>) theDocumentElement
|
||||
inResponse: (WOResponse *) theResponse
|
||||
{
|
||||
NSString *folderId, *realCollectionId, *itemId;
|
||||
NSString *folderId, *realCollectionId, *itemId, *bodyPreferenceType, *mimeSupport;
|
||||
NSMutableArray *folderIdentifiers;
|
||||
SOGoMailAccounts *accountsFolder;
|
||||
SOGoMailAccount *accountFolder;
|
||||
@@ -3065,6 +3065,13 @@ void handle_eas_terminate(int signum)
|
||||
return;
|
||||
}
|
||||
|
||||
bodyPreferenceType = [[(id)[[(id)[theDocumentElement getElementsByTagName: @"BodyPreference"] lastObject] getElementsByTagName: @"Type"] lastObject] textValue];
|
||||
[context setObject: bodyPreferenceType forKey: @"BodyPreferenceType"];
|
||||
mimeSupport = [[(id)[theDocumentElement getElementsByTagName: @"MIMESupport"] lastObject] textValue];
|
||||
[context setObject: mimeSupport forKey: @"MIMESupport"];
|
||||
|
||||
[context setObject: @"8" forKey: @"MIMETruncation"];
|
||||
|
||||
// FIXME: support more than one CollectionId tag + DeepTraversal
|
||||
folderId = [[(id)[[(id)[theDocumentElement getElementsByTagName: @"Query"] lastObject] getElementsByTagName: @"CollectionId"] lastObject] textValue];
|
||||
folderIdentifiers = [NSMutableArray array];
|
||||
|
||||
Reference in New Issue
Block a user