Monotone-Parent: 92b2fdd608b688167b4b789517424f79fd5cf6cd
Monotone-Revision: 33c27aebfdbf4c4a04a550aef20cd2049b1c4575 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-12-13T17:04:27 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
15e5ad482c
commit
d8696daa64
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||||
|
|
||||||
|
#import <NGExtensions/NSObject+Logs.h>
|
||||||
|
|
||||||
#import <NGImap4/NGImap4EnvelopeAddress.h>
|
#import <NGImap4/NGImap4EnvelopeAddress.h>
|
||||||
|
|
||||||
#import <Mailer/SOGoMailFolder.h>
|
#import <Mailer/SOGoMailFolder.h>
|
||||||
|
@ -58,10 +60,8 @@
|
||||||
|
|
||||||
+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping
|
+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping
|
||||||
{
|
{
|
||||||
[mapping registerURL: @"sogo://openchange:openchange@mail/folderINBOX"
|
[mapping registerURL: @"sogo://openchange:openchange@mail/folderINBOX/"
|
||||||
withID: 0x160001];
|
withID: 0x160001];
|
||||||
[mapping registerURL: @"sogo://openchange:openchange@mail/folderxxxc0001"
|
|
||||||
withID: 0x0c0001];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setupModuleFolder
|
- (void) setupModuleFolder
|
||||||
|
@ -86,8 +86,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray *) getFolderMessageKeys: (SOGoFolder *) folder
|
- (NSArray *) getFolderMessageKeys: (SOGoFolder *) folder
|
||||||
|
matchingQualifier: (EOQualifier *) qualifier
|
||||||
{
|
{
|
||||||
return [(SOGoMailFolder *) folder toOneRelationshipKeys];
|
NSArray *keys;
|
||||||
|
|
||||||
|
if (qualifier)
|
||||||
|
{
|
||||||
|
[self errorWithFormat: @"we need to support qualifiers: %@",
|
||||||
|
qualifier];
|
||||||
|
keys = nil;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
keys = [(SOGoMailFolder *) folder toOneRelationshipKeys];
|
||||||
|
|
||||||
|
return keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - (enum MAPISTATUS) getCommonTableChildproperty: (void **) data
|
// - (enum MAPISTATUS) getCommonTableChildproperty: (void **) data
|
||||||
|
@ -462,7 +474,7 @@
|
||||||
NSInteger count, max;
|
NSInteger count, max;
|
||||||
NGImap4EnvelopeAddress *currentAddress;
|
NGImap4EnvelopeAddress *currentAddress;
|
||||||
NSString *name;
|
NSString *name;
|
||||||
uint32_t tags[] = { PR_SUBJECT_UNICODE, PR_HASATTACH,
|
enum MAPITAGS tags[] = { PR_SUBJECT_UNICODE, PR_HASATTACH,
|
||||||
PR_MESSAGE_DELIVERY_TIME, PR_MESSAGE_FLAGS,
|
PR_MESSAGE_DELIVERY_TIME, PR_MESSAGE_FLAGS,
|
||||||
PR_FLAG_STATUS, PR_SENSITIVITY,
|
PR_FLAG_STATUS, PR_SENSITIVITY,
|
||||||
PR_SENT_REPRESENTING_NAME_UNICODE,
|
PR_SENT_REPRESENTING_NAME_UNICODE,
|
||||||
|
@ -543,10 +555,10 @@
|
||||||
{
|
{
|
||||||
knownProperties = [NSMutableDictionary new];
|
knownProperties = [NSMutableDictionary new];
|
||||||
[knownProperties setObject: @"DATE"
|
[knownProperties setObject: @"DATE"
|
||||||
forKey: MAPIPropertyNumber (PR_MESSAGE_DELIVERY_TIME)];
|
forKey: MAPIPropertyKey (PR_MESSAGE_DELIVERY_TIME)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyNumber (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* restrictions */
|
/* restrictions */
|
||||||
|
|
Loading…
Reference in a new issue