fix(mail): Clean temporary files when mail is sent. Check if body part is NGMimeFileData to add path for cleaning.

This commit is contained in:
smizrahi
2023-11-07 10:38:43 +01:00
parent 7481ccf370
commit d1634054d6

View File

@@ -2243,7 +2243,7 @@ static NSString *userAgent = nil;
NSString *path;
body = [part body];
if (body) {
if (body && [body isKindOfClass: [NGMimeFileData class]]) {
path = [body path];
if (path) {
[tmpFiles addObject: path];