diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-06-24 19:16:18 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-06-24 19:16:18 +0200 |
commit | 6fa1a0da1f0902f10be8fc4eb24180f8e3453c17 (patch) | |
tree | 48daf190a25026e5404a406aeb9107710439b9de /program/lib/Roundcube/rcube_imap.php | |
parent | 750de3189cd96505747c10b24ab055cf0bdcbdce (diff) |
Extend get_quota() so it's possible to specify GETQUOTAROOT folder and return full quota info (including all roots and types, e.g. MESSAGE) - for future use
Diffstat (limited to 'program/lib/Roundcube/rcube_imap.php')
-rw-r--r-- | program/lib/Roundcube/rcube_imap.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index 109886f8d..858db7b5b 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -3067,14 +3067,15 @@ class rcube_imap extends rcube_storage /** * Get mailbox quota information - * added by Nuny + * + * @param string $folder Folder name * * @return mixed Quota info or False if not supported */ - public function get_quota() + public function get_quota($folder = null) { if ($this->get_capability('QUOTA') && $this->check_connection()) { - return $this->conn->getQuota(); + return $this->conn->getQuota($folder); } return false; |