(fix) additional fix for issue #3152

pull/105/head
Ludovic Marcotte 2015-09-17 16:28:42 -04:00
parent f13b3dd201
commit 9a2f3914e2
1 changed files with 5 additions and 0 deletions

View File

@ -2628,6 +2628,11 @@ static BOOL debugOn = NO;
[map setObject: [mailObject messageId] forKey: @"in-reply-to"];
references = [[[[[mailObject mailHeaders] objectForKey: @"references"] componentsSeparatedByString: @" "] mutableCopy] autorelease];
// If there is no References: header, initialize it with In-Reply-To.
if ([mailObject inReplyTo] && ![references count])
references = [NSMutableArray arrayWithObject: [mailObject inReplyTo]];
if ([references count] > 0)
{
// If there are more than ten identifiers listed, we eliminate the second one.