(fix) handle references correctly over EAS (#3365)
parent
bfa3cf379c
commit
4e9911419a
|
@ -1071,9 +1071,15 @@ struct GlobalObjectId {
|
||||||
if ([[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"14.0"] ||
|
if ([[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"14.0"] ||
|
||||||
[[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"14.1"])
|
[[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"14.1"])
|
||||||
{
|
{
|
||||||
|
id value;
|
||||||
NSString *reference;
|
NSString *reference;
|
||||||
|
|
||||||
reference = [[[[self mailHeaders] objectForKey: @"references"] componentsSeparatedByString: @" "] objectAtIndex: 0];
|
value = [[self mailHeaders] objectForKey: @"references"];
|
||||||
|
|
||||||
|
if ([value isKindOfClass: [NSArray class]])
|
||||||
|
reference = [[[value objectAtIndex: 0] componentsSeparatedByString: @" "] objectAtIndex: 0];
|
||||||
|
else
|
||||||
|
reference = [[value componentsSeparatedByString: @" "] objectAtIndex: 0];
|
||||||
|
|
||||||
if ([reference length] > 0)
|
if ([reference length] > 0)
|
||||||
[s appendFormat: @"<ConversationId xmlns=\"Email2:\">%@</ConversationId>", [[reference dataUsingEncoding: NSUTF8StringEncoding] activeSyncRepresentationInContext: context]];
|
[s appendFormat: @"<ConversationId xmlns=\"Email2:\">%@</ConversationId>", [[reference dataUsingEncoding: NSUTF8StringEncoding] activeSyncRepresentationInContext: context]];
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -7,6 +7,7 @@ Enhancements
|
||||||
|
|
||||||
Bug fixes
|
Bug fixes
|
||||||
- numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
|
- numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
|
||||||
|
- correctly handle the References header over EAS (#3365)
|
||||||
|
|
||||||
2.3.2 (2015-09-16)
|
2.3.2 (2015-09-16)
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue