Monotone-Parent: 7e1e7d720fbae9469e69ee665a26293d48382280
Monotone-Revision: f36908690fb1287e17d7bb0eb4155ddc4c6f6a55 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-22T21:49:37 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
a6731b0cbf
commit
a0de2d52f7
|
@ -1,5 +1,9 @@
|
|||
2008-08-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/MailPartViewers/UIxMailRenderingContext.m
|
||||
([UIxMailRenderingContext -viewerForBodyInfo:_info]): display
|
||||
parts with a bodyId as an attachment.
|
||||
|
||||
* UI/Contacts/UIxContactView.m ([UIxContactView -workUrl])
|
||||
([UIxContactView -homeUrl]): the test for the presence of a
|
||||
protocol was inverted, causing the output of wrong urls anyway...
|
||||
|
|
|
@ -40,10 +40,15 @@
|
|||
- (BOOL) _shouldDisplayAsAttachment: (NSDictionary *) info
|
||||
{
|
||||
NSString *s;
|
||||
BOOL shouldDisplay;
|
||||
|
||||
s = [[info objectForKey:@"disposition"] objectForKey: @"type"];
|
||||
|
||||
return (s && [s caseInsensitiveCompare: @"ATTACHMENT"] == NSOrderedSame);
|
||||
|
||||
shouldDisplay = ((s && ([s caseInsensitiveCompare: @"ATTACHMENT"]
|
||||
== NSOrderedSame))
|
||||
|| [[info objectForKey: @"bodyId"] length]);
|
||||
|
||||
return shouldDisplay;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue