mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
* Mail: configurable limit to exclude attachments from automatic saving as drafts, default is no limit / attachments are always saved in drafts
This commit is contained in:
parent
27380821bb
commit
e006b2b634
@ -2667,9 +2667,15 @@ class mail_compose
|
||||
break;
|
||||
}
|
||||
}
|
||||
// attach files not for autosaving
|
||||
elseif ($_formData['filemode'] == Vfs\Sharing::ATTACH && !$_autosaving)
|
||||
// attach files not for autosaving, if size-limit is configured and attachment is bigger
|
||||
elseif ($_formData['filemode'] == Vfs\Sharing::ATTACH)
|
||||
{
|
||||
// exclude attachments greater configured size from autosaving
|
||||
if ($_autosaving && !empty(Mail::$mailConfig['autosave_attachment_limit_mb']) &&
|
||||
$attachment['size'] > 1024*1024*Mail::$mailConfig['autosave_attachment_limit_mb'])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (isset($attachment['file']) && parse_url($attachment['file'],PHP_URL_SCHEME) == 'vfs')
|
||||
{
|
||||
Vfs::load_wrapper('vfs');
|
||||
@ -2761,6 +2767,9 @@ class mail_compose
|
||||
*/
|
||||
public function ajax_saveAsDraft ($content, $action='button[saveAsDraft]')
|
||||
{
|
||||
// release session, as we don't need it and it blocks parallel requests
|
||||
$GLOBALS['egw']->session->commit_session();
|
||||
|
||||
//error_log(__METHOD__.__LINE__.array2string($content)."(, action=$action)");
|
||||
$response = Api\Json\Response::get();
|
||||
$success = true;
|
||||
|
@ -227,6 +227,7 @@ event details follow mail de Details zum Termin folgen
|
||||
every %1. day mail de Jeden %1. Tag
|
||||
everyone mail de Alle Anwender
|
||||
examine namespace to retrieve folders in others and shared mail de Den Namensraum untersuchen, um Ordner in anderen und gemeinsam genutzten Ordnern abzurufen
|
||||
exclude attachments greater than given size from automatic saving as draft (in mb) admin de Schließe Anhänge größer als die angegebene Größe vom automatischen Speichern als Entwurf aus (in MB)
|
||||
extended mail de Erweitert
|
||||
extra sent folders mail de Anzeigeschema Gesendet-Ordner
|
||||
failed to delete %1 mail de Löschen von %1 fehlgeschlagen
|
||||
|
@ -227,6 +227,7 @@ event details follow mail en Event details follow
|
||||
every %1. day mail en Every %1. day
|
||||
everyone mail en Everyone
|
||||
examine namespace to retrieve folders in others and shared mail en Examine namespace to retrieve folders in others and shared
|
||||
exclude attachments greater than given size from automatic saving as draft (in mb) admin en Exclude attachments greater than given size from automatic saving as draft (in MB)
|
||||
extended mail en Extended
|
||||
extra sent folders mail en Extra Sent Folders
|
||||
failed to delete %1 mail en Failed to delete %1
|
||||
|
@ -126,6 +126,10 @@
|
||||
<et2-description value="Default value for remembering S/MIME passphrase in minutes"></et2-description>
|
||||
<et2-textbox id="newsettings[smime_pass_exp]"></et2-textbox>
|
||||
</row>
|
||||
<row>
|
||||
<et2-description value="Exclude attachments greater than given size from automatic saving as draft (in MB)"></et2-description>
|
||||
<et2-number id="newsettings[autosave_attachment_limit_mb]"></et2-number>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user