diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-08 16:34:36 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-08 16:34:36 +0000 |
| commit | 5eda37f855611f3c634a38dd4a8211d7d3cd1c9d (patch) | |
| tree | c2ac113a9130dc206e25eb9a1db3c3980530bd33 /roundcubemail/program/steps/settings/func.inc | |
| parent | ca8dd91021c5e298689e62fb31576d8045c376c3 (diff) | |
- Add option to delete messages instead of moving to Trash when in Junk folder (#1486686)
git-svn-id: https://svn.roundcube.net/trunk@6052 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/settings/func.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc index fc836ed50..48d1d5a0b 100644 --- a/roundcubemail/program/steps/settings/func.inc +++ b/roundcubemail/program/steps/settings/func.inc @@ -816,6 +816,16 @@ function rcmail_user_prefs($current=null) ); } + if (!isset($no_override['delete_junk'])) { + $field_id = 'rcmfd_delete_junk'; + $input_delete_junk = new html_checkbox(array('name' => '_delete_junk', 'id' => $field_id, 'value' => 1)); + + $blocks['main']['options']['delete_junk'] = array( + 'title' => html::label($field_id, Q(rcube_label('deletejunk'))), + 'content' => $input_delete_junk->show($config['delete_junk']?1:0), + ); + } + // Trash purging on logout if (!isset($no_override['logout_purge'])) { $field_id = 'rcmfd_logout_purge'; |
