Monotone-Parent: 1126d6ad15404744e779f38d1c079d25ecf95422

Monotone-Revision: 38a3270c68b7a55a50c94569d54d172e37841eba

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-02-06T16:43:16
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-02-06 16:43:16 +00:00
parent a9169a2823
commit 6dac2e38f7
2 changed files with 8 additions and 7 deletions
+7
View File
@@ -1,3 +1,10 @@
2011-02-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/SOGoMAPIFSMessage.m (-MAPISave): restored old way of
decoding the property dictionary from the property list as the
"new method" was working around that was solved elsewhere and was
causing trouble with value typing.
2011-02-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/SOGoMAPIFSMessage.m (-properties): initialize
+1 -7
View File
@@ -24,7 +24,6 @@
#import <Foundation/NSDictionary.h>
#import <Foundation/NSFileManager.h>
#import <Foundation/NSException.h>
#import <Foundation/NSPropertyList.h>
#import <Foundation/NSString.h>
#import <NGExtensions/NSObject+Logs.h>
@@ -92,7 +91,6 @@
{
NSArray *pathComponents;
NSString *filePath;
NSData *content;
[self logWithFormat: @"-MAPISave"];
@@ -112,11 +110,7 @@
return;
}
content = [NSPropertyListSerialization
dataFromPropertyList: properties
format: NSPropertyListOpenStepFormat
errorDescription: NULL];
if (![content writeToFile: filePath atomically: NO])
if (![properties writeToFile: filePath atomically: YES])
[NSException raise: @"MAPIStoreIOException"
format: @"could not save message"];
}