imap_set_quota() function
| From: | dimon at intellinetinc dot com | Date: | Fri, 24 Oct 2003 15:16:31 +0000 |
| Subject: | imap_set_quota() function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167436@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to use PHP's imap_set_quota() function to manage user's quotas. I
can set user's quota to 0 with:
imap_set_quota($mbox, "user/afif", none); or
imap_set_quota($mbox, "user/afif", 0);
And for sure I can set user's quota to any other value > 0
But when I'm trying to delete quota (set unlimited quota) for the user with
imap_set_quota($mbox, "user/afif", -1);
imap_errors() gives me this error:
"IMAP protocol error: Invalid quota list in Setquota"
I have compiled PHP with c-client 2001 FINAL as suggested at php.net site.
But it still doesn't work :-)
My configuration is:
name : Cyrus IMAPD
version : v2.2.1-BETA 2003/07/16 21:18:54
os : FreeBSD
os-version : 4.7-RELEASE
environment: Built w/Cyrus SASL 2.1.13
Running w/Cyrus SASL 2.1.15
Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
Built w/OpenSSL 0.9.6h 5 Dec 2002
Running w/OpenSSL 0.9.6h 5 Dec 2002
CMU Sieve 2.2
PHP-4.3.3
Apache/1.3.27
c-client 2001 FINAL
Have anyone had any issues or luck doing the same thing?
May be I missed something?
Any help would be greatly appreciated!
Dmitry