From 4f255ac9d580697c04e505259995920a60b907c1 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 2 Feb 2022 10:26:01 -0500 Subject: [PATCH] fix(mail): use body as first part when msg has no parts Fixes #5472 --- SoObjects/Mailer/SOGoMailObject.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoMailObject.m b/SoObjects/Mailer/SOGoMailObject.m index da596ad2a..97670dd4b 100644 --- a/SoObjects/Mailer/SOGoMailObject.m +++ b/SoObjects/Mailer/SOGoMailObject.m @@ -1204,7 +1204,7 @@ static BOOL debugSoParts = NO; /* 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";