summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-02-04 19:08:10 +0000
committerthomascube <thomas@roundcube.net>2006-02-04 19:08:10 +0000
commit58e3602a37cccab55f71fbf839b32fbc4322699c (patch)
tree4f48f72eb95d6ad7fb69ac09644e96f890bfded8 /program/include/rcube_imap.inc
parent76ffa2a099300325b34c92a9291dc4031b8a0d8a (diff)
Bugfixes for encoding and sending with attachments
Diffstat (limited to 'program/include/rcube_imap.inc')
-rw-r--r--program/include/rcube_imap.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc
index fa13e02cf..cb6b409d9 100644
--- a/program/include/rcube_imap.inc
+++ b/program/include/rcube_imap.inc
@@ -1057,6 +1057,22 @@ class rcube_imap
}
+ /**
+ * Get quota
+ * added by Nuny
+ */
+ function get_quota()
+ {
+ if ($this->get_capability('QUOTA'))
+ {
+ $result = iil_C_GetQuota($this->conn);
+ return sprintf("%.2fMB / %.2fMB (%.0f%%)", $result["used"] / 1000.0, $result["total"] / 1000.0, $result["percent"]);
+ }
+ else
+ return 'unknown';
+ }
+
+
// subscribe to a specific mailbox(es)
function subscribe($mbox, $mode='subscribe')
{