IMAP patch needing testing
| From: | Dan Kalowsky | Date: | Mon, 22 Jul 2002 20:37:00 +0000 |
| Subject: | IMAP patch needing testing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108933@lists.php.net to get a copy of this message | ||
To those of you reading this,
I'd like to submit the following patch for testing by the general public.
It should add a few bug fixes to the IMAP quota system, and some new
features. Unfortunately I cannot test this out, as my local machine
cannot build cclient (for some unknown reason), and the IMAP server I have
access to does not have quota capabilities turned on.
First off this should fix a bug in the imap_get_quota, where only the last
values are consider for the usage and limit. It will now return an array
of arrays that looks like so:
[NAME] => usage
=> limit
[NAME2] => usage
=> limit
... etc ...
The rest of this function works exactly the same as manual page describes.
Secondly this should add the functionality of imap_get_quotaroot to PHP.
As I haven't been able to get a result back, I'm not sure if the return
array looks decent or not. But this should work fairly similiar to
imap_get_quota, only there is no need to be the mailadmin user to view
quota settings.
If those of you using IMAP can test these functions out and tell me how
they work, I would appriciate it. Or if you can give me access to an IMAP
server with quota services, that would be just as good.
This patch was made against 4.2.1, but there is no reason it shouldn't
work against 4.2.2. Thanks for your time, and please cc me in any
comments, I'm not subsribed to the list.
>---------------------------------------------------------------<
Dan Kalowsky "A little less conversation,
http://www.deadmime.org/~dank a little more
action."
dank@nospam-deadmime.org - "A Little Less Conversation",
kalowsky@nospam-php.net Elvis Presley