Monotone-Parent: b6e0c5de869a2a15ff75f7dd4850ede790373285
Monotone-Revision: 3cd1b3a63a62fe841a9e4978d5ca818ab175f870 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-09-06T14:13:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
0af7547b8a
commit
fe39d82f5d
|
@ -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:):
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue