| | |
| | | |
| | | function select($mailbox) |
| | | { |
| | | if (empty($mailbox)) { |
| | | if (!strlen($mailbox)) { |
| | | return false; |
| | | } |
| | | |
| | |
| | | */ |
| | | function status($mailbox, $items=array()) |
| | | { |
| | | if (empty($mailbox)) { |
| | | if (!strlen($mailbox)) { |
| | | return false; |
| | | } |
| | | |
| | |
| | | |
| | | function checkForRecent($mailbox) |
| | | { |
| | | if (empty($mailbox)) { |
| | | if (!strlen($mailbox)) { |
| | | $mailbox = 'INBOX'; |
| | | } |
| | | |
| | | $this->select($mailbox); |
| | | |
| | | if ($this->selected == $mailbox) { |
| | | return $this->data['RECENT']; |
| | | } |
| | |
| | | |
| | | function copy($messages, $from, $to) |
| | | { |
| | | if (empty($from) || empty($to)) { |
| | | return false; |
| | | } |
| | | |
| | | if (!$this->select($from)) { |
| | | return false; |
| | | } |
| | |
| | | |
| | | function move($messages, $from, $to) |
| | | { |
| | | if (!$from || !$to) { |
| | | return false; |
| | | } |
| | | |
| | | $r = $this->copy($messages, $from, $to); |
| | | |
| | | if ($r) { |
| | |
| | | private function _listMailboxes($ref, $mailbox, $subscribed=false, |
| | | $status_opts=array(), $select_opts=array()) |
| | | { |
| | | if (empty($mailbox)) { |
| | | if (!strlen($mailbox)) { |
| | | $mailbox = '*'; |
| | | } |
| | | |