mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-21 10:38:12 +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 parent
fb8c2cf8e4
commit
da8c86b685
2 files changed
+6
-2
No files matched your search
@@ -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