From 46eb9aca1444a4dd5a5b46ce46bc2f8d9b08601f Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 8 Nov 2007 23:05:00 +0000 Subject: [PATCH] Monotone-Parent: 7dc4694487f6ed68847c7c82ec9cbd6abc7cd6bb Monotone-Revision: 14b414ba7293c0713bd326509d6decb5c2a41d2b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-08T23:05:00 Monotone-Branch: ca.inverse.sogo --- UI/MailerUI/UIxMailListView.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/MailerUI/UIxMailListView.m b/UI/MailerUI/UIxMailListView.m index 13cf5fc47..e9d6a7e7d 100644 --- a/UI/MailerUI/UIxMailListView.m +++ b/UI/MailerUI/UIxMailListView.m @@ -221,7 +221,7 @@ = [[parts objectsForKey: @"disposition"] objectEnumerator]; while (!hasAttachment && (currentDisp = [dispositions nextObject])) - hasAttachment = ([currentDisp objectForKey: @"type"]); + hasAttachment = ([[currentDisp objectForKey: @"type"] length]); } return hasAttachment; @@ -417,7 +417,8 @@ /* only need to restrict if we have a lot */ uids = [uids subarrayWithRange: r]; - msgs = [[self clientObject] fetchUIDs: uids parts: [self fetchKeys]]; + msgs = (NSDictionary *) [[self clientObject] fetchUIDs: uids + parts: [self fetchKeys]]; messages = [[msgs objectForKey: @"fetch"] retain]; } @@ -552,7 +553,7 @@ { WORequest *request; NSString *specificMessage, *searchCriteria, *searchValue; - SOGoUserFolder *co; + SOGoMailFolder *co; request = [context request];