Monotone-Parent: b6e0c5de869a2a15ff75f7dd4850ede790373285

Monotone-Revision: 3cd1b3a63a62fe841a9e4978d5ca818ab175f870

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-09-06T14:13:24
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-09-06 14:13:24 +00:00
parent 0af7547b8a
commit fe39d82f5d
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2012-09-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreMailVolatileMessage.m
(FillMessageHeadersFromProperties): build a recipient list for the
"from" field from the list stored in the value for "orig" in the
recipients dict.
2012-09-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreMailMessage.m (-getMessageData:inMemCtx:):

View File

@ -540,7 +540,7 @@ FillMessageHeadersFromProperties (NGMutableHashMap *headers,
NSArray *list;
NSCalendarDate *date;
NSDictionary *recipients;
NSUInteger count;
NSUInteger type;
SOGoUser *activeUser;
activeUser
@ -555,12 +555,16 @@ FillMessageHeadersFromProperties (NGMutableHashMap *headers,
recipients = [mailProperties objectForKey: @"recipients"];
if (recipients)
{
for (count = 1; count < 3; count++)
for (type = MAPI_TO; type <= MAPI_BCC; type++)
{
recId = recTypes[count];
recId = recTypes[type];
list = MakeRecipientsList ([recipients objectForKey: recId]);
[headers setObjects: list forKey: recId];
}
list = MakeRecipientsList ([recipients objectForKey: @"orig"]);
if (list)
[headers setObjects: list forKey: @"from"];
}
else
NSLog (@"message without recipients");