IMAP quota functionality

From: Date: Fri, 19 Jul 2002 01:48:17 +0000
Subject: IMAP quota functionality
Groups: php.dev 
Request: Send a blank email to php-dev+get-86020@lists.php.net to get a copy of this message
Hey there php-dev readers, Attached is a patch (based off of 4.2.1 release) for the IMAP system that needs testing. It's been brought to my attention that the quota support is sort of... well, not standards compliant. So I tried to fix that. In the process I've also hopefully added in imap_get_quotaroot() capabilities as well. This patch NEEDS through testing, but would be nice to see in 4.3. Unfortunately I have no access to an IMAP server with quota capabilities turned on, so I can't really test. imap_get_quota() should work the same, only now you will be returned the name value as well, or whatever that is in quota name field (i.e. a message). The qlist array now looks like: [qlist] => [name] => [usage] => [limit] imap_get_quotaroot() should not require the user to be run as a mail-admin user, making this eventually much more useful. Here is an example using it: <?php $mbx = imap_open( /* blah blah blah */); $qroot = imap_get_quotaroot($mbx, "INBOX"); // this should retrieve the quota for the logged in users INBOX if (!$qroot) { print "We have nothing!"; } else { foreach ($qroot as $name => $value) print "$name and $value\n"; } ?> As usual please test and send any comments back to me. >---------------------------------------------------------------< 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

« previous php.dev (#86020) next »