From 0aba9b359e212ee935a779b32fa22c15593cea45 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 9 Sep 2010 18:42:45 +0000 Subject: [PATCH] Improved error-handling on broken IMAP responses Monotone-Parent: 4bf3403d9b8b5ffb0f071863663473bb6c30c47f Monotone-Revision: 764facae177bd6d33ff44eed127581dd7e8421cf Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2010-09-09T18:42:45 Monotone-Branch: ca.inverse.sogo --- UI/MailerUI/UIxMailListActions.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UI/MailerUI/UIxMailListActions.m b/UI/MailerUI/UIxMailListActions.m index ce090705a..0ee7ba64f 100644 --- a/UI/MailerUI/UIxMailListActions.m +++ b/UI/MailerUI/UIxMailListActions.m @@ -668,7 +668,13 @@ [msg addObject: [self msgRowID]]; // uid - [msg addObject: [message objectForKey: @"uid"]]; + if ([message objectForKey: @"uid"]) + { + [msg addObject: [message objectForKey: @"uid"]]; + [headers addObject: msg]; + } + else + [self logWithFormat: @"Invalid UID for message: %@", message]; [headers addObject: msg];