mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-12 23:37:15 +00:00
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:
1 parent
a9169a2823
commit
6dac2e38f7
2 files changed
+8
-7
No files matched your search
@@ -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"];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user