| | |
| | | return true; |
| | | } |
| | | |
| | | if (is_array($this->data['LIST']) && is_array($opts = $this->data['LIST'][$mailbox])) { |
| | | if (in_array('\\Noselect', $opts)) { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | list($code, $response) = $this->execute('SELECT', array($this->escape($mailbox))); |
| | | |
| | | if ($code == self::ERROR_OK) { |
| | |
| | | if (empty($mailbox)) { |
| | | $mailbox = '*'; |
| | | } |
| | | /* |
| | | |
| | | if (empty($ref) && $this->prefs['rootdir']) { |
| | | $ref = $this->prefs['rootdir']; |
| | | } |
| | | */ |
| | | |
| | | $args = array($this->escape($ref), $this->escape($mailbox)); |
| | | |
| | | if (!empty($status_opts) && $this->getCapability('LIST-STATUS')) { |
| | |
| | | // * LIST (<options>) <delimiter> <mailbox> |
| | | if (!$lstatus || $cmd == 'LIST' || $cmd == 'LSUB') { |
| | | list($opts, $delim, $folder) = $this->tokenizeResponse($response, 3); |
| | | |
| | | if (!$lstatus) { |
| | | $folders[] = $folder; |
| | | } |
| | | else { |
| | | $folders[$folder] = array(); |
| | | } |
| | | |
| | | if ($cmd == 'LIST') { |
| | | $this->data['LIST'][$folder] = $opts; |
| | | } |
| | | } |
| | | // * STATUS <mailbox> (<result>) |
| | | else if ($cmd == 'STATUS') { |