openchange: FillMessageHeadersFromProperties fix skipping of last value in

possible range of recepients

IMHO, this fixes a bug, that when saving a meessage, it  is saved
without BCC fields.

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
pull/49/head
Kamen Mazdrashki 2014-05-05 01:51:18 +02:00 committed by Julio García
parent 7da8885190
commit 27851ef428
1 changed files with 2 additions and 2 deletions

View File

@ -541,7 +541,7 @@ FillMessageHeadersFromProperties (NGMutableHashMap *headers,
NSArray *list;
NSCalendarDate *date;
NSDictionary *recipients;
NSUInteger type, bccLimit;
enum ulRecipClass type, bccLimit;
SOGoUser *activeUser;
NSNumber *priority;
@ -562,7 +562,7 @@ FillMessageHeadersFromProperties (NGMutableHashMap *headers,
else
bccLimit = MAPI_CC;
bccLimit++;
for (type = MAPI_TO; type < bccLimit; type++)
for (type = MAPI_TO; type <= bccLimit; type++)
{
recId = recTypes[type];
list = MakeRecipientsList ([recipients objectForKey: recId]);