summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-05 16:24:10 +0000
committeralecpl <alec@alec.pl>2009-06-05 16:24:10 +0000
commit119cd17abf74bd98afec2979c4ac4a89af1f0ca7 (patch)
tree71afa837b170317e63881571533c6f1a81f5db81 /program/steps/mail
parent0b2ce91f25aed4c174c437e679155d30bd0387bf (diff)
- add 'Deleted' to search filter
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 154fd7e1e..d5f3a6875 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1446,7 +1446,7 @@ function rcmail_send_mdn($uid)
function rcmail_search_filter($attrib)
{
- global $OUTPUT;
+ global $OUTPUT, $CONFIG;
if (!strlen($attrib['id']))
$attrib['id'] = 'rcmlistfilter';
@@ -1466,6 +1466,8 @@ function rcmail_search_filter($attrib)
$select_filter->add(rcube_label('unread'), 'UNSEEN');
$select_filter->add(rcube_label('flagged'), 'FLAGGED');
$select_filter->add(rcube_label('unanswered'), 'UNANSWERED');
+ if (!$CONFIG['skip_deleted'])
+ $select_filter->add(rcube_label('deleted'), 'DELETED');
$out = $select_filter->show($_SESSION['search_filter']);