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.
Kevin L.
*********** 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())) $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')) +// { $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 +?>
Bezaleel Support wrote:
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.
Kevin L.
Bezaleel Support wrote:
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 <XXXX> 1 OK LOGIN Ok. 2 GETQUOTA
- QUOTA "GETQUOTA" (STORAGE 32381 97657)
2 OK GETQUOTA Ok. [/quote]
Whenever I log into round cube, I see "Disk Usage: unknown" at the bottom of every page.
Anyone have any ideas?
Kevin L.