openchange: Fix submitWithFlags to submit to BCC-ed recipients also

this reintroduces commit 7efb263c659451d2c781547a5b38cb5d01ed837f

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
pull/49/head
Kamen Mazdrashki 2014-06-02 01:18:23 +02:00 committed by Julio García
parent dd7200e00f
commit 4b383705ff
1 changed files with 3 additions and 3 deletions

View File

@ -865,7 +865,7 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS
NSMutableArray *recipientEmails;
NSArray *list;
NSString *recId, *from, *msgClass;
NSUInteger count;
enum ulRecipClass type;
SOGoUser *activeUser;
SOGoDomainDefaults *dd;
NSException *error;
@ -881,9 +881,9 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS
recipientEmails = [NSMutableArray arrayWithCapacity: 32];
recipients = [properties objectForKey: @"recipients"];
for (count = 0; count < 3; count++)
for (type = MAPI_ORIG; type <= MAPI_BCC; type++)
{
recId = recTypes[count];
recId = recTypes[type];
list = [recipients objectForKey: recId];
[recipientEmails
addObjectsFromArray: [list objectsForKey: @"email"