mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
Monotone-Parent: a99f88ccf9ab0ad0fdc51a6e439bb37ef7748fe9
Monotone-Revision: 487bd18ac638478f769ea4425a0640978c5b751b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-11T21:22:48 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
2007-05-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/AgenorUserDefaults.m ([AgenorUserDefaults
|
||||
-primaryFetchProfile]): when building with libFoundation, don't
|
||||
use the "propertyList" method from NSString. Rather, we convert
|
||||
the string to an NSData instance and passit as parameter to
|
||||
NSDeserializer. This way, we obtain a mutable dictionary rather
|
||||
than an immutable one.
|
||||
|
||||
* SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject -bodyPartForText])
|
||||
([SOGoDraftObject -mimeMessageForContentWithHeaderMap:]): use the
|
||||
constant string "contentTypeValue".
|
||||
|
||||
@@ -109,6 +109,9 @@ static NSString *uidColumnName = @"uid";
|
||||
NSString *sql, *value;
|
||||
NSArray *attrs;
|
||||
BOOL rc;
|
||||
#if LIB_FOUNDATION_LIBRARY
|
||||
NSData *plistData;
|
||||
#endif
|
||||
|
||||
rc = NO;
|
||||
|
||||
@@ -144,7 +147,17 @@ static NSString *uidColumnName = @"uid";
|
||||
/* remember values */
|
||||
value = [row objectForKey: fieldName];
|
||||
if ([value isNotNull])
|
||||
[values setDictionary: [value propertyList]];
|
||||
{
|
||||
#if LIB_FOUNDATION_LIBRARY
|
||||
plistData = [value dataUsingEncoding: NSUTF8StringEncoding];
|
||||
[values setDictionary: [NSDeserializer
|
||||
deserializePropertyListFromData: plistData
|
||||
mutableContainers: YES]];
|
||||
|
||||
#else
|
||||
[values setDictionary: [value propertyList]];
|
||||
#endif
|
||||
}
|
||||
|
||||
ASSIGN (lastFetch, [NSCalendarDate date]);
|
||||
defFlags.modified = NO;
|
||||
|
||||
Reference in New Issue
Block a user