Well, to fill everyone in - my particular server supports QUOTA support in IMAP, but it does not return any flag that tells the RC install that QUOTA support is enabled. So, in my case, RC displays a "Disk Usage: Unknown" by default.
I just installed the Beta 2 from scratch and realized that this was still the case, so I had to go in and redo the changes I had worked up previously so that Quotas were displayed. This used to be documented on the old forum, so I dug up a cached version of it and am now reposting for anyone who may fall into the same boat that I am in.
So, without further adieu, the old post(s):
-----------------------------
Hello all,
I am currently using the latest CVS version of RC.
I have logged in and checked to make certain I have QUOTA support in imap.
Quote
1 login klanders
1 OK LOGIN Ok.
2 GETQUOTA
* QUOTA "GETQUOTA" (STORAGE 32381 97657)
2 OK GETQUOTA Ok.
Whenever I log into round cube, I see "Disk Usage: unknown" at the bottom of every page.
(Later)
I checked iil_C_GetQuota in program/lib/imap.inc which was taken from ilohamail
I have run the command that it executes:
1 login klanders XXXXX
1 OK LOGIN Ok.
2 QUOTAROOT
2 NO Error in IMAP command received by server.
QUOT1 GETQUOTAROOT "INBOX"
* QUOTAROOT "INBOX" "ROOT"
* QUOTA "ROOT" (STORAGE 32381 97657)
QUOT1 OK GETQUOTAROOT Ok.
So, that works - yet I still do not see the quota in the Round Cube display.
I just also tested using ilohamail and I do see the correct quota displayed in ilohamail version 0.8.11-Stable.
Perhaps this will help in some way to track down my issue.
(Later)
Ok, so one of the guys found that one of the checks for Quota support were dorking with the display of the user's quota on our installation. He did the following to enable quota display on our Round Cube installation. He modified the "program/steps/mail/func.inc" and "program/include/rcube_imap.inc" files. The diffs are below. I am not sure that I included them here correctly. My first time doing so.
As I haven't really seen anyone else post about this, it may be a case where we are just the odd-balls.
WARNING
If you are NOT sure that your server supports QUOTA, do NOT apply this patch. This can break your installation and could crash your server if overloaded. Not to mention that it fills your error log pretty quickly.
*********** FUNC.INC ****************
diff -uN program/steps/mail/func.inc.bak program/steps/mail/func.inc
--- program/steps/mail/func.inc.bak 2006-05-15 23:21:40.000000000 -0400
+++ program/steps/mail/func.inc 2006-05-16 00:06:01.000000000 -0400
@@ -598,9 +598,10 @@
// allow the following attributes to be added to the <span> tag
$attrib_str = create_attrib_string($attrib, array('style', 'class', 'id'));
- if (!$IMAP->get_capability('QUOTA'))
- $quota_text = rcube_label('unknown');
- else if (!($quota_text = $IMAP->get_quota()))
+// if (!$IMAP->get_capability('QUOTA'))
+// $quota_text = rcube_label('unknown');
+// else
+ if (!($quota_text = $IMAP->get_quota()))
$quota_text = rcube_label('unlimited');
$out = '<span' . $attrib_str . '>';
@@ -1481,4 +1482,4 @@
}
-?>
\ No newline at end of file
+?>
*******RCUBE_IMAP.INC******
diff -uN program/include/rcube_imap.inc.bak program/include/rcube_imap.inc
--- program/include/rcube_imap.inc.bak 2006-05-16 00:04:30.000000000 -0400
+++ program/include/rcube_imap.inc 2006-05-16 00:05:04.000000000 -0400
@@ -1197,12 +1197,12 @@
*/
function get_quota()
{
- if ($this->get_capability('QUOTA'))
- {
+// if ($this->get_capability('QUOTA'))
+// {
$result = iil_C_GetQuota($this->conn);
if ($result["total"])
return sprintf("%.2fMB / %.2fMB (%.0f%%)", $result["used"] / 1000.0, $result["total"] / 1000.0, $result["percent"]);
- }
+// }
return FALSE;
}
@@ -2087,4 +2087,4 @@
return trim($output);
}
-?>
\ No newline at end of file
+?>