From: wolfgang Date: Mon, 5 Nov 2007 17:31:09 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1235 d1b88da0-ebda-0310... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf399b96ff4042cc9da1547d056f993fa1e7041c;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1235 d1b88da0-ebda-0310-925b-ed51d893ca5b --- 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];