| | |
| | | protected $search_set; |
| | | protected $options = array('auth_type' => 'check'); |
| | | protected $page_size = 10; |
| | | protected $list_page = 1; |
| | | protected $threading = false; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public function set_page($page) |
| | | { |
| | | $this->list_page = (int) $page; |
| | | if ($page = intval($page)) { |
| | | $this->list_page = $page; |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | $headers = $this->get_message_headers($uid); |
| | | return rcube_charset::convert($this->get_message_part($uid, $part, null), |
| | | $headers->charset ? $headers->charset : $this->default_charset); |
| | | $headers->charset ?: $this->default_charset); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param string $folder Folder name (empty for server metadata) |
| | | * @param array $entries Entries |
| | | * @param array $options Command options (with MAXSIZE and DEPTH keys) |
| | | * @param bool $force Disables cache use |
| | | * |
| | | * @return array Metadata entry-value hash array on success, NULL on error |
| | | */ |
| | | abstract function get_metadata($folder, $entries, $options = array()); |
| | | abstract function get_metadata($folder, $entries, $options = array(), $force = false); |
| | | |
| | | /* ----------------------------------------- |
| | | * Cache related functions |