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
parent
7da8885190
commit
27851ef428
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue