note 25353 added to function.imap-mailboxmsginfo

From: Date: Fri, 20 Sep 2002 12:29:08 +0000
Subject: note 25353 added to function.imap-mailboxmsginfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-37034@lists.php.net to get a copy of this message
then use imap_get_quotaroot()..... or use this one (works with qmail): function get_quotaroot() { if(!$socket = @fsockopen("your server", your port); return false; fgets($socket, 1024); fputs($socket, "a001 LOGIN ".$username." ".$password."\n"); fgets($socket, 1024); fputs($socket, "a002 GETQUOTAROOT INBOX\n"); fgets($socket, 1024); $result = fgets($socket, 1024); fputs($socket, "a003 LOGOUT\n"); fgets($socket, 1024); sscanf($result, '* QUOTA "ROOT" (STORAGE %d %d MESSAGE %d %d', $usedSize, $maxSize, $usedNum, $maxNum); return array("usedSize" => $usedSize, "maxSize" => $maxSize, "usedNum" => $usedNum, "maxNum" => $maxNum); } -- http://www.php.net/manual/en/function.imap-mailboxmsginfo.php http://master.php.net/manage/user-notes.php?action=edit+25353 http://master.php.net/manage/user-notes.php?action=delete+25353 http://master.php.net/manage/user-notes.php?action=reject+25353

« previous php.notes (#37034) next »