mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 09:48:12 +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:
1 parent
7481ccf370
commit
d1634054d6
1 file changed
+1
-1
@@ -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