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
This commit is contained in:
Ludovic Marcotte
2010-09-09 18:42:45 +00:00
parent d67826dcd0
commit 0aba9b359e

View File

@@ -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];