From 8bd2711c3717db4d3b0d6d694aa9c3417abeabd0 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 8 Nov 2007 21:57:30 +0000 Subject: [PATCH] Monotone-Parent: 4b26b52413afe9c0e02b06099d1261720125fdca Monotone-Revision: 0d9f18d50e83859175eb80a24a1db2cb24a748e2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-08T21:57:30 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/MailPartViewers/UIxMailPartHTMLViewer.m | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ed2a6bd67..01b581ad8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-11-08 Wolfgang Sourdeau + * UI/MailPartViewers/UIxMailPartHTMLViewer.m + ([UIxMailPartHTMLViewer -_attachmentIds]): the reference was one + character too short, which cause the images not to be displayed + sometimes and crashes to happen whenever the references on a + message were wrong (due to bugs in SOPE). + * UI/MailerUI/UIxMailListView.m ([UIxMailListView -hasMessageAttachment]): consider an attachment any content that has a non-nil disposition. diff --git a/UI/MailPartViewers/UIxMailPartHTMLViewer.m b/UI/MailPartViewers/UIxMailPartHTMLViewer.m index 4dbda7c49..fbe39301f 100644 --- a/UI/MailPartViewers/UIxMailPartHTMLViewer.m +++ b/UI/MailPartViewers/UIxMailPartHTMLViewer.m @@ -449,7 +449,7 @@ url = [NSMutableString new]; [url appendString: baseURL]; [url appendFormat: @"/%@", [partPath componentsJoinedByString: @"/"]]; - [url deleteCharactersInRange: NSMakeRange([url length] - 3, 2)]; + [url deleteCharactersInRange: NSMakeRange([url length] - 2, 2)]; parts = [[parent bodyInfo] objectForKey: @"parts"]; max = [parts count]; for (count = 0; count < max; count++)