only clean up temp-files, if we dont need them for mail_integration::integrate

This commit is contained in:
Ralf Becker 2015-04-17 14:40:43 +00:00
parent d1cecdfd74
commit ded2c74681

View File

@ -3090,9 +3090,9 @@ class mail_compose
}
}
}
if(is_array($this->sessionData['attachments'])) {
// only clean up temp-files, if we dont need them for mail_integration::integrate
elseif(is_array($this->sessionData['attachments']))
{
foreach($this->sessionData['attachments'] as $value) {
if (!empty($value['file']) && parse_url($value['file'],PHP_URL_SCHEME) != 'vfs') { // happens when forwarding mails
unlink($GLOBALS['egw_info']['server']['temp_dir'].'/'.$value['file']);