summaryrefslogtreecommitdiff
path: root/program/steps/settings/func.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-03 13:09:25 +0000
committeralecpl <alec@alec.pl>2008-10-03 13:09:25 +0000
commit9b3d7f743f21f0ae27bb314faa61e04f43411be0 (patch)
treeeeec662c055d1c71f59e333e3e2ccaad10335c78 /program/steps/settings/func.inc
parent8962ec04be962319b06211c9700766f3ffa8aab0 (diff)
- Add 'skip_deleted' option in User Preferences (#1485445)
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r--program/steps/settings/func.inc13
1 files changed, 11 insertions, 2 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 04079e16f..e98ce1b47 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -285,7 +285,16 @@ function rcmail_user_prefs_form($attrib)
$table->add('title', html::label($field_id, Q(rcube_label('flagfordeletion'))));
$table->add(null, $input_flagfordeletion->show($config['flag_for_deletion']?1:0));
}
-
+
+ // don't show deleted messages
+ if (!isset($no_override['skip_deleted'])) {
+ $field_id = 'rcmfd_skip_deleted';
+ $input_purge = new html_checkbox(array('name' => '_skip_deleted', 'id' => $field_id, 'value' => 1));
+
+ $table->add('title', html::label($field_id, Q(rcube_label('skipdeleted'))));
+ $table->add(null, $input_purge->show($config['skip_deleted']?1:0));
+ }
+
// Trash purging on logout
if (!isset($no_override['logout_purge'])) {
$field_id = 'rcmfd_logout_purge';
@@ -294,7 +303,7 @@ function rcmail_user_prefs_form($attrib)
$table->add('title', html::label($field_id, Q(rcube_label('logoutclear'))));
$table->add(null, $input_purge->show($config['logout_purge']?1:0));
}
-
+
// INBOX compacting on logout
if (!isset($no_override['logout_expunge'])) {
$field_id = 'rcmfd_logout_expunge';