mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 06:36:24 +00:00
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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user