Monotone-Parent: 6bb1bd2b9a63daae8f56da56b2ba72ac8bad2d3e

Monotone-Revision: a84224f7e18c7678f6ed4be61800899d8fb9286d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-09-23T19:27:21
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-09-23 19:27:21 +00:00
parent a0112fdbf8
commit fcad5d186b
3 changed files with 28 additions and 4 deletions

View File

@@ -52,13 +52,21 @@
{
int rc = MAPISTORE_SUCCESS;
NSData *changeKey;
MAPIStoreGCSFolder *parentFolder;
NSString *nameInContainer;
if (isNew)
rc = MAPISTORE_ERR_NOT_FOUND;
else
{
changeKey = [(MAPIStoreGCSFolder *)[self container]
changeKeyForMessageWithKey: [self nameInContainer]];
parentFolder = (MAPIStoreGCSFolder *)[self container];
nameInContainer = [self nameInContainer];
changeKey = [parentFolder changeKeyForMessageWithKey: nameInContainer];
if (!changeKey)
{
[parentFolder synchroniseCache];
changeKey = [parentFolder changeKeyForMessageWithKey: nameInContainer];
}
if (!changeKey)
abort ();
*data = [changeKey asBinaryInMemCtx: memCtx];