From 6dac2e38f7f8b67ec850d3cc8a857b50cad99b1a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sun, 6 Feb 2011 16:43:16 +0000 Subject: [PATCH] Monotone-Parent: 1126d6ad15404744e779f38d1c079d25ecf95422 Monotone-Revision: 38a3270c68b7a55a50c94569d54d172e37841eba Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-06T16:43:16 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ OpenChange/SOGoMAPIFSMessage.m | 8 +------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index edf23a415..bee14c483 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-02-06 Wolfgang Sourdeau + + * 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 * OpenChange/SOGoMAPIFSMessage.m (-properties): initialize diff --git a/OpenChange/SOGoMAPIFSMessage.m b/OpenChange/SOGoMAPIFSMessage.m index b52966a1c..3e74be617 100644 --- a/OpenChange/SOGoMAPIFSMessage.m +++ b/OpenChange/SOGoMAPIFSMessage.m @@ -24,7 +24,6 @@ #import #import #import -#import #import #import @@ -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"]; }