mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-05 05:18:51 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user