mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-03 07:44:25 +00:00
Monotone-Parent: 9634e883abb4f5cf42e1b4d9c3d3e1b1a61f3e7f
Monotone-Revision: c7755bd4c79d8115db4835ecb7a3fb92ab273020 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-11-30T16:17:50 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -89,9 +89,9 @@
|
||||
return [(SOGoMailFolder *) folder toOneRelationshipKeys];
|
||||
}
|
||||
|
||||
// - (int) getCommonTableChildproperty: (void **) data
|
||||
// - (enum MAPISTATUS) getCommonTableChildproperty: (void **) data
|
||||
// atURL: (NSString *) childURL
|
||||
// withTag: (uint32_t) proptag
|
||||
// withTag: (enum MAPITAGS) proptag
|
||||
// inFolder: (SOGoFolder *) folder
|
||||
// withFID: (uint64_t) fid
|
||||
// {
|
||||
@@ -110,15 +110,15 @@
|
||||
// return rc;
|
||||
// }
|
||||
|
||||
- (int) getMessageTableChildproperty: (void **) data
|
||||
atURL: (NSString *) childURL
|
||||
withTag: (uint32_t) proptag
|
||||
inFolder: (SOGoFolder *) folder
|
||||
withFID: (uint64_t) fid
|
||||
- (enum MAPISTATUS) getMessageTableChildproperty: (void **) data
|
||||
atURL: (NSString *) childURL
|
||||
withTag: (enum MAPITAGS) proptag
|
||||
inFolder: (SOGoFolder *) folder
|
||||
withFID: (uint64_t) fid
|
||||
{
|
||||
id child;
|
||||
NSCalendarDate *offsetDate;
|
||||
int rc;
|
||||
enum MAPISTATUS rc;
|
||||
|
||||
rc = MAPI_E_SUCCESS;
|
||||
switch (proptag)
|
||||
@@ -246,7 +246,13 @@
|
||||
@"fetch"];
|
||||
key = [[keys objectAtIndex: 0] objectForKey: @"key"];
|
||||
content = [[result objectForKey: key] objectForKey: @"data"];
|
||||
*data = [content asBinaryInMemCtx: memCtx];
|
||||
if ([content length] > 3999)
|
||||
{
|
||||
*data = NULL;
|
||||
rc = MAPI_E_NOT_ENOUGH_RESOURCES;
|
||||
}
|
||||
else
|
||||
*data = [content asBinaryInMemCtx: memCtx];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -290,6 +296,7 @@
|
||||
child = [self lookupObject: childURL];
|
||||
*data = [[child from] asUnicodeInMemCtx: memCtx];
|
||||
break;
|
||||
case PR_INTERNET_MESSAGE_ID:
|
||||
case PR_INTERNET_MESSAGE_ID_UNICODE:
|
||||
child = [self lookupObject: childURL];
|
||||
*data = [[child messageId] asUnicodeInMemCtx: memCtx];
|
||||
@@ -401,13 +408,13 @@
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (int) getFolderTableChildproperty: (void **) data
|
||||
atURL: (NSString *) childURL
|
||||
withTag: (uint32_t) proptag
|
||||
inFolder: (SOGoFolder *) folder
|
||||
withFID: (uint64_t) fid
|
||||
- (enum MAPISTATUS) getFolderTableChildproperty: (void **) data
|
||||
atURL: (NSString *) childURL
|
||||
withTag: (enum MAPITAGS) proptag
|
||||
inFolder: (SOGoFolder *) folder
|
||||
withFID: (uint64_t) fid
|
||||
{
|
||||
int rc;
|
||||
enum MAPISTATUS rc;
|
||||
|
||||
rc = MAPI_E_SUCCESS;
|
||||
switch (proptag)
|
||||
|
||||
Reference in New Issue
Block a user