Skip to content

Commit

Permalink
fix(mail): use .eml extension for message/global body parts
Browse files Browse the repository at this point in the history
See RFC 6532
  • Loading branch information
cgx committed Jan 10, 2022
1 parent b0c5adf commit 179992c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/MailPartViewers/UIxMailPartViewer.m
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ - (NSString *) pathExtensionForType: (NSString *) _mt
if ([_st isEqualToString:@"x-vcard"]) return @"vcf";
}
else if ([_mt isEqualToString:@"message"]) {
if ([_st isEqualToString:@"rfc822"]) return @"eml";
if ([_st isEqualToString:@"rfc822"] || [_st isEqualToString:@"global"])
return @"eml";
}
else if ([_mt isEqualToString:@"application"]) {
if ([_st isEqualToString:@"pdf"]) return @"pdf";
Expand Down

0 comments on commit 179992c

Please sign in to comment.