From 01042ec50ffe74439f1d18e64171c62ffd10eca1 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 16 Jun 2010 17:50:37 +0000 Subject: [PATCH] Monotone-Parent: 2a59bba0a73aaeebae8c13b21e4099f844924b1b Monotone-Revision: 8fb969e757a4404632a8e53c60633563b80e39d4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-16T17:50:37 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ SoObjects/Mailer/SOGoDraftObject.m | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3be5ad04b..01f5ee2b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-06-16 Wolfgang Sourdeau + + * SoObjects/Mailer/SOGoDraftObject.m + (_purgeRecipients:fromAddresses:): we need to compare the email + addresses case-insensitively. + 2010-06-15 Wolfgang Sourdeau * SoObjects/SOGo/SOGoDAVAuthenticator.m (-checkLogin:password:): diff --git a/SoObjects/Mailer/SOGoDraftObject.m b/SoObjects/Mailer/SOGoDraftObject.m index 0e7cebc42..0d8156b3c 100644 --- a/SoObjects/Mailer/SOGoDraftObject.m +++ b/SoObjects/Mailer/SOGoDraftObject.m @@ -444,7 +444,9 @@ static NSString *userAgent = nil; for (count = max - 1; count >= 0; count--) { currentAddress = [addresses objectAtIndex: count]; - if ([currentRecipient isEqualToString: [currentAddress baseEMail]]) + if ([currentRecipient + caseInsensitiveCompare: [currentAddress baseEMail]] + == NSOrderedSame) { [addresses removeObjectAtIndex: count]; max--;