Disk Usage: unknown - but do have support

Bezaleel Support support at bezaleel.net
Tue May 16 14:29:52 CEST 2006


Well, I just ran the capability check, and behold, it doesn't show any 
thing other than IMAPrev1 in the list. Now, I know QUOTA's are working 
through my roundcube install when the check is disabled. I suppose I 
will have to check out why QUOTA (or anything for that matter) isn't 
showing up in a capability check. Just for verification from the 
audience, I did do that right, didn't I??

Kevin L.

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 32370 97657)
QUOT1 OK GETQUOTAROOT Ok.
CAPABILITY
CAPABILITY NO Error in IMAP command received by server.
2 capability
* CAPABILITY IMAP4rev1
2 OK CAPABILITY completed

Bezaleel Support wrote:
> Thomas,
>
> I definitely agree with what you are saying. If QUOTA is not listed, I 
> wouldn't want my server continuously attempting to get it either. I 
> can only imagine how much resources would be wasted with it doing that.
>
> I am just saying that while my server does support QUOTA, the check 
> was failing and I was getting the "Unknown" result in my final 
> display. I will check the CAPABILITY response of my server and see if 
> QUOTA is listed. I can only imagine that it is, since QUOTA is indeed 
> supported, but you never know.
>
> Kevin L.
>
> Thomas Bruederli wrote:
>> Well, if quota support is not listed in the server's capabilities, I
>> don't see a reason why RoundCube should attempt to get it. Sending
>> requests for something that the server does not support (or at least
>> does not tell the client) does not make sense to me. That's why we've
>> built it the capability check. Sending unsupported requests just fills
>> the error logs. Check the CAPABILITY response of your server and see if
>> QUOTA is listed there.
>>
>> Regards,
>> Thomas
>>
>>
>> Bezaleel Support wrote:
>>  
>>> 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()))
>>> +//  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
>>> +?>
>>>
>>>
>>>
>>> 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.
>>>>>
>>>>>
>>>>>         
>>>>
>>>>       
>>>     
>>
>>
>>   
>
>
>





More information about the Dev mailing list