diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-06-30 12:26:15 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-06-30 12:26:15 +0200 |
commit | b8bcca7033b3d10eb7da4b7a1f9987ee9e25a45b (patch) | |
tree | 4d587c1a4b6f238a5e4ad2721a482346060ad482 /program/steps/settings | |
parent | 789a7b5fd5986b4815837bbbaa27c2d95030ce0c (diff) |
Display quota information for current folder not INBOX only (#1487993)
Diffstat (limited to 'program/steps/settings')
-rw-r--r-- | program/steps/settings/edit_folder.inc | 4 | ||||
-rw-r--r-- | program/steps/settings/folders.inc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/program/steps/settings/edit_folder.inc b/program/steps/settings/edit_folder.inc index 87a45fa8d..51f4d8d72 100644 --- a/program/steps/settings/edit_folder.inc +++ b/program/steps/settings/edit_folder.inc @@ -290,6 +290,10 @@ function rcmail_folder_form($attrib) $RCMAIL->output->set_env('messagecount', (int) $msgcount); + if ($mbox_imap !== null && empty($_POST)) { + $RCMAIL->output->command('parent.set_quota', $RCMAIL->quota_content(null, $mbox_imap)); + } + return $out; } diff --git a/program/steps/settings/folders.inc b/program/steps/settings/folders.inc index 8b74a59e1..33b2b0624 100644 --- a/program/steps/settings/folders.inc +++ b/program/steps/settings/folders.inc @@ -134,7 +134,7 @@ else if ($RCMAIL->action == 'purge') { $success = $STORAGE->delete_message('*', $mbox); $delete = true; } - // copy to Trash + // move to Trash else { $success = $STORAGE->move_message('1:*', $trash_mbox, $mbox); $delete = false; @@ -144,7 +144,7 @@ else if ($RCMAIL->action == 'purge') { $OUTPUT->set_env('messagecount', 0); if ($delete) { $OUTPUT->show_message('folderpurged', 'confirmation'); - $OUTPUT->command('set_quota', $RCMAIL->quota_content()); + $OUTPUT->command('set_quota', $RCMAIL->quota_content(null, $mbox)); } else { $OUTPUT->show_message('messagemoved', 'confirmation'); |