Monotone-Parent: 425bfc2f774ffc6abc9a76908ac1b2fcf7d6ad14

Monotone-Revision: 82a617e3ad7bb1a96e181c9d1c240bc2c89de7f7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-03T15:05:19
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-02-03 15:05:19 +00:00
parent 3bf138283b
commit d64c7164d7
5 changed files with 30 additions and 20 deletions

View File

@@ -127,9 +127,11 @@ static Class SOGoMailFolderK;
return [MAPIStoreMailMessageTable tableForContainer: self];
}
- (NSString *) createFolder: (struct SRow *) aRow
withFID: (uint64_t) newFID
- (enum mapistore_error) createFolder: (struct SRow *) aRow
withFID: (uint64_t) newFID
andKey: (NSString **) newKeyP
{
enum mapistore_error rc;
NSString *folderName, *nameInContainer;
SOGoMailFolder *newFolder;
int i;
@@ -151,11 +153,15 @@ static Class SOGoMailFolderK;
[folderName asCSSIdentifier]];
newFolder = [SOGoMailFolderK objectWithName: nameInContainer
inContainer: sogoObject];
if (![newFolder create])
nameInContainer = nil;
if ([newFolder create])
*newKeyP = nameInContainer;
else if ([newFolder exists])
rc = MAPISTORE_ERR_EXIST;
else
rc = MAPISTORE_ERR_DENIED;
}
return nameInContainer;
return rc;
}
- (int) deleteFolder