Monotone-Parent: 51962cae38f65cc3d2f1a2a3640d028831f5921b

Monotone-Revision: b4a3ddf3836324fd1f4925acb0426089a4a0350a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-26T19:25:14
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-03-26 19:25:14 +00:00
parent eb6d27e969
commit eac814acf1
2 changed files with 20 additions and 0 deletions

View File

@@ -38,6 +38,7 @@
#import <SOGo/SOGoUserDefaults.h>
#import <Appointments/iCalEntityObject+SOGo.h>
#import <Appointments/SOGoTaskObject.h>
#import <Mailer/NSString+Mail.h>
#import "MAPIStoreContext.h"
#import "MAPIStoreTasksFolder.h"
@@ -346,6 +347,21 @@
// comment
value = [properties
objectForKey: MAPIPropertyKey (PR_BODY_UNICODE)];
if (!value)
{
value = [properties objectForKey: MAPIPropertyKey (PR_HTML)];
if (value)
{
value = [[NSString alloc] initWithData: value
encoding: NSUTF8StringEncoding];
[value autorelease];
value = [value htmlToText];
}
}
if (value && [value length] == 0)
value = nil;
[vToDo setComment: value];
if (value)
[vToDo setComment: value];