Skip to content

Commit

Permalink
fix(mail): use body as first part when msg has no parts
Browse files Browse the repository at this point in the history
Fixes #5472
  • Loading branch information
cgx committed Feb 2, 2022
1 parent e3b71bc commit 4f255ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoObjects/Mailer/SOGoMailObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ - (id) lookupImap4BodyPartKey: (NSString *) _key

/* We don't have parts here but we're trying to download the message's
content that could be an image/jpeg, as an example */
if ([parts count] == 0 && ![_key intValue])
if ([parts count] == 0 && (![_key intValue] || [_key isEqualToString: @"1"]))
{
partDesc = [self bodyStructure];
_key = @"1";
Expand Down

0 comments on commit 4f255ac

Please sign in to comment.