From cf399b96ff4042cc9da1547d056f993fa1e7041c Mon Sep 17 00:00:00 2001 From: wolfgang Date: Mon, 5 Nov 2007 17:31:09 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1235 d1b88da0-ebda-0310-925b-ed51d893ca5b --- ChangeLog | 5 +++++ SoObjects/Mailer/SOGoMailObject+Draft.m | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8ce035d..15a5fba5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-11-05 Wolfgang Sourdeau + * SoObjects/Mailer/SOGoMailObject+Draft.m ([SOGoMailObject + -contentForEditing]): make sure the htmlContent flag is set to NO + when we select the textual part. Also we select only the relevant + keys for fetching. + * UI/MailerUI/WOContext+UIxMailer.m ([-mailSubjectFormatter]): removed method. diff --git a/SoObjects/Mailer/SOGoMailObject+Draft.m b/SoObjects/Mailer/SOGoMailObject+Draft.m index 28b31f55..3b406d1b 100644 --- a/SoObjects/Mailer/SOGoMailObject+Draft.m +++ b/SoObjects/Mailer/SOGoMailObject+Draft.m @@ -75,7 +75,7 @@ { NSArray *types; NSDictionary *parts; - NSString *rawPart, *content; + NSString *rawPart, *content, *contentKey; int index; BOOL htmlContent; @@ -88,11 +88,15 @@ index = [types indexOfObject: @"text/html"]; htmlContent = YES; } + else + htmlContent = NO; if (index == NSNotFound) content = @""; else { - parts = [self fetchPlainTextStrings: keys]; + contentKey = [keys objectAtIndex: index]; + parts = [self fetchPlainTextStrings: + [NSArray arrayWithObject: contentKey]]; rawPart = [[parts allValues] objectAtIndex: 0]; if (htmlContent) content = [rawPart htmlToText]; -- 2.39.5