diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-12-25 10:33:06 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-12-25 10:33:06 +0100 |
commit | da5fa28d5705ab2b9991f39741f2a8f1751a25ad (patch) | |
tree | 8a9ae216a1cd75ae91c7e86342896002c0ee5c70 /program/steps/mail/check_recent.inc | |
parent | 772bec6789ed4c6ee460577fd567717fac1250d4 (diff) |
Display different icons when Trash folder is empty or full (#1485775)
Diffstat (limited to 'program/steps/mail/check_recent.inc')
-rw-r--r-- | program/steps/mail/check_recent.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index 60da68a96..d2d27a2ca 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -25,6 +25,7 @@ if (empty($_REQUEST['_folderlist']) && empty($_REQUEST['_list'])) { return; } +$trash = $RCMAIL->config->get('trash_mbox'); $current = $RCMAIL->storage->get_folder(); $check_all = $RCMAIL->action != 'refresh' || (bool)$RCMAIL->config->get('check_all_folders'); @@ -132,6 +133,11 @@ foreach ($a_mailboxes as $mbox_name) { $RCMAIL->output->set_env('recent_flags', $flags); } } + + // set trash folder state + if ($mbox_name === $trash) { + $OUTPUT->command('set_trash_count', $RCMAIL->storage->count($mbox_name, 'EXISTS')); + } } // trigger refresh hook |