Bug #14673 Updated: quota ressources
| From: | php at tcs dot eng dot br | Date: | Sat, 06 Jul 2002 15:27:53 +0000 |
| Subject: | Bug #14673 Updated: quota ressources | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13318@lists.php.net to get a copy of this message | ||
ID: 14673
Updated by: php@tcs.eng.br
Reported By: kaalh@smol.org
Status: Open
Bug Type: IMAP related
Operating System: Debian Woody i386
PHP Version: 4.1.0
New Comment:
It appears to me that the error is on the IMAP library:
php_imap.c:1031:if(!imap_getquota(imap_le_struct->imap_stream,
Z_STRVAL_PP(qroot))) {
imap_getquota() is implemented by the IMAP library. I'll try and see
if I can find the error on the library and then post a patch.
Previous Comments:
------------------------------------------------------------------------
[2002-06-11 05:54:09] tmlfung@yahoo.com.hk
My imap server(InterMail server) returns:
0 getquota ""
* QUOTA "" (STORAGE 250 10000 MESSAGE 26 1500)
0 OK GETQUOTA completed
imap_get_quota is unable to return the STORAGE value.
------------------------------------------------------------------------
[2002-05-28 16:48:51] llima@imagelink.com.br
I have the same problem. I'm not an experienced programmer so I could
not come with a patch. However, I've experienced it first hand.
The IMAP server we use replies with (STORAGE aa bb TRIGGER cc dd),
where TRIGGER is a value em bytes that triggers the server to send a
warning to the user.
PHP4 is considering the usage to be cc and the quota dd, just like
described by kaalh@smol.org. Looks like it really gets the last two
numbers it finds and uses them.
------------------------------------------------------------------------
[2001-12-23 11:33:04] kaalh@smol.org
imap_get_quota() return only an array with the last quota resource
usage & limit.
An IMAP4 server which supports the QUOTA capability may support limits
on any number of resources (rfc2087)
Maybe it should return all resources usages & limits in an associative
array.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14673&edit=1