* @author Robin Rainton * @package plugins * @subpackage ldapfolderinfo * @version $Id: quota.inc.php,v 1.3 2007/08/23 13:54:56 avel Exp $ */ /** * Parse output from quotaroot command. * * @param $response * @param $output * @return array */ function parse_quotaroot_output($response, $output) { $ret = array(); if (strstr($response, ". NO Mailbox")) { $ret["quotaroot"] = "NOT-SET"; $ret["used"] = "NOT-SET"; $ret["qmax"] = "NOT-SET"; return 0; } else { if(strstr($output[0],'"')){ // The name of the folder contains blank space $first_token_list = split('"', $output[0]); $token_list=$token_list = split(" ", $first_token_list[0]); $pos=count($token_list)-1; for($i=1;$i