imap quota
| From: | Roger Thomas | Date: | Tue, 14 Jan 2003 06:52:19 +0000 |
| Subject: | imap quota | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131519@lists.php.net to get a copy of this message | ||
i am referring to imap_get_quota manpages at
http://www.php.net/manual/en/function.imap-get-quota.php
it gave a short script (see bottom).
question: in a qmail-ldap/courier-imap environment, who is that mailadmin ?
-- script start --
$mbox =
imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
$quota_values = imap_get_quota($mbox, "user.kalowsky");
if(is_array($quota_values)) {
$storage = $quota_values['STORAGE'];
print "STORAGE usage level is: " . $storage['usage'];
print "STORAGE limit level is: " . $storage['limit'];
$message = $quota_values['MESSAGE'];
print "MESSAGE usage level is: " . $message['usage'];
print "MESSAGE usage level is: " . $message['limit'];
/* ... */
}
imap_close($mbox);
-- script endz --
--
roger
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com