summaryrefslogtreecommitdiff
path: root/program/steps/settings/func.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-08 16:34:36 +0000
committeralecpl <alec@alec.pl>2012-04-08 16:34:36 +0000
commit1b30a710cfe7fb2917ed337c52b06bb2236e1a05 (patch)
tree80465019a2941d6fa4ea8c67cb71e1c43d2e7447 /program/steps/settings/func.inc
parent84b028ce0054a053f4aa019f311b507bb9faed08 (diff)
- Add option to delete messages instead of moving to Trash when in Junk folder (#1486686)
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r--program/steps/settings/func.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index fc836ed50..48d1d5a0b 100644
--- a/program/steps/settings/func.inc
+++ b/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';