Displaying 1 result from an estimated 1 matches for "sqimap_read_data".
2003 Sep 19
1
feature request: maildirquota
...upports this.
--snippet from quota usage plugin to squirrelmail--
function sqimap_get_quota ($imap_stream, $mailbox) {
if (check_quota_capability($imap_stream, "QUOTA")) {
fputs ($imap_stream, "a001 GETQUOTAROOT \"$mailbox\"\r\n");
$read_ary = sqimap_read_data ($imap_stream, 'a001', true, $result,
$message);
for ($i = 0; $i < count($read_ary); $i++) {
if (ereg("STORAGE", $read_ary[$i])) {
$tempusage = ereg_replace("^.*[(]STORAGE +(.*)[)].*$",
"\\1",...