Monotone-Parent: 52ff2b4f8e3b54dccdd86d1df03df7ddf6df7a1a

Monotone-Revision: 84362f2350a7b9647b853e2a15e4797ea7c589ee

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-02-15T21:02:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-02-15 21:02:35 +00:00
parent fb8c2cf8e4
commit da8c86b685
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
2007-02-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailPartViewers/UIxMailPartAlternativeViewer.m: select the
text/html component before text/plain.
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
-addRequiredKeysOfStructure:path:toArray:recurse:]): accepts the
fetching of HTML parts.

View File

@@ -89,10 +89,11 @@
if ((count = [_types count]) == 0)
return NSNotFound;
/* we always choose text/plain if available */
if ((i = [_types indexOfObject:@"text/html"]) != NSNotFound)
return i;
if ((i = [_types indexOfObject:@"text/plain"]) != NSNotFound)
return i;
/* then we scan for other text types and choose the first one found */
for (i = 0; i < count; i++) {
if ([(NSString *)[_types objectAtIndex:i] hasPrefix:@"text/"])