+ public function getBoxList($mode = Banana::BOXES_ALL, $since = 0, $withstats = false)
+ {
+ global $globals;
+ $spool = $globals->lists->spool . '/';
+ $list = glob($spool . '*.mbox/*.mbox');
+ if ($list === false) {
+ return array();
+ }
+ $groups = array();
+ foreach ($list as $path) {
+ $path = substr($path, strpos($path, 'mbox/') + 5);
+ $path = substr($path, 0, -5);
+ list($domain, $listname) = explode($globals->lists->vhost_sep, $path, 2);
+ $group = $listname . '@' . $domain;
+ $groups[$group] = array('desc' => null, 'msgnum' => null, 'unread' => null);
+ }
+ return $groups;
+ }
+