mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 20:38:50 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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/"])
|
||||
|
||||
Reference in New Issue
Block a user