Skip to content

Commit

Permalink
Handle broken messages with no date
Browse files Browse the repository at this point in the history
Fixes #3498
  • Loading branch information
cgx committed Feb 4, 2016
1 parent c12200c commit d4e01a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/MailerUI/UIxMailView.m
Expand Up @@ -289,12 +289,13 @@ those are the IMAP4 flags (and annotations, which we do not use).
}

data = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[self formattedDate], @"date",
[self attachmentAttrs], @"attachmentAttrs",
[self shouldAskReceipt], @"shouldAskReceipt",
[NSNumber numberWithBool: [self mailIsDraft]], @"isDraft",
[[self contentViewerComponent] renderedPart], @"parts",
nil];
if ([self formattedDate])
[data setObject: [self formattedDate] forKey: @"date"];
if ([self messageSubject])
[data setObject: [self messageSubject] forKey: @"subject"];
if ((addresses = [addressFormatter dictionariesForArray: [co fromEnvelopeAddresses]]))
Expand Down

0 comments on commit d4e01a8

Please sign in to comment.