2007-11-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+ * 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.
{
NSArray *types;
NSDictionary *parts;
- NSString *rawPart, *content;
+ NSString *rawPart, *content, *contentKey;
int index;
BOOL htmlContent;
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];