mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-26 12:38:56 +00:00
fix(mail): Fix assertion when failed to decode base64 mime body mail part
This commit is contained in:
1 parent
395a01ed52
commit
0a828a739e
1 file changed
+4
-1
@@ -953,7 +953,10 @@ static BOOL debugSoParts = NO;
|
||||
body = [NSData data];
|
||||
|
||||
currentAttachment = [NSMutableDictionary dictionaryWithDictionary: currentInfo];
|
||||
[currentAttachment setObject: body forKey: @"body"];
|
||||
if (body)
|
||||
[currentAttachment setObject: body forKey: @"body"];
|
||||
else
|
||||
[self errorWithFormat: @"Failed add attachement %@, empty body - failed to decode : %@", currentPath, currentInfo];
|
||||
[attachments addObject: currentAttachment];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user