From bd04b6d069b8a03ecfe09fd3102164904ae5d941 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 1 Nov 2007 17:09:58 +0000 Subject: [PATCH] Monotone-Parent: 425ec819913ba5c65358660175d9507c5d2c8667 Monotone-Revision: 5f76faa2c6c13d283eda0de46a0ffad529be7b33 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-01T17:09:58 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/MailerUI/UIxMailListView.m | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2278ba7c1..aaebeac99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-11-01 Wolfgang Sourdeau + * UI/MailerUI/UIxMailListView.m ([UIxMailListView + -hasMessageAttachment]): initialize hasAttachment with "NO" to + avoid false positives. + * OGoContentStore/OCSiCalFieldExtractor.m ([OCSiCalFieldExtractor -extractQuickFieldsFromEvent:_event]) ([OCSiCalFieldExtractor -extractQuickFieldsFromTodo:_task]): set title to an empty string where the event/task summary is null. diff --git a/UI/MailerUI/UIxMailListView.m b/UI/MailerUI/UIxMailListView.m index 6f7767d4c..2ccc79b26 100644 --- a/UI/MailerUI/UIxMailListView.m +++ b/UI/MailerUI/UIxMailListView.m @@ -208,6 +208,8 @@ NSDictionary *currentDisp; BOOL hasAttachment; + hasAttachment = NO; + parts = [[message objectForKey: @"body"] objectForKey: @"parts"]; if ([parts count] > 1) { @@ -218,8 +220,6 @@ hasAttachment = ([[currentDisp objectForKey: @"type"] isEqualToString: @"ATTACHMENT"]); } - else - hasAttachment = NO; return hasAttachment; }