| | |
| | | function _fetch_headers($mailbox, $msgs, &$a_msg_headers, $cache_key) |
| | | { |
| | | // fetch reqested headers from server |
| | | $a_header_index = iil_C_FetchHeaders($this->conn, $mailbox, $msgs, false, $this->fetch_add_headers); |
| | | $a_header_index = iil_C_FetchHeaders($this->conn, $mailbox, $msgs, false, false, $this->fetch_add_headers); |
| | | |
| | | if (!empty($a_header_index)) |
| | | { |
| | |
| | | if ($headers = iil_C_FetchHeader($this->conn, $mailbox, join(',', $for_update), false, $this->fetch_add_headers)) |
| | | foreach ($headers as $header) |
| | | $this->add_message_cache($cache_key, $header->id, $header, NULL, |
| | | in_array((string)$header->uid, $for_remove, true)); |
| | | in_array((string)$header->uid, (array)$for_remove, true)); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | $internal_key = '__single_msg'; |
| | | |
| | | if ($this->caching_enabled && (!isset($this->cache[$internal_key][$uid]) || |
| | | ($struct && empty($this->cache[$internal_key][$uid]->structure)))) |
| | | if ($this->caching_enabled && !isset($this->cache[$internal_key][$uid])) |
| | | { |
| | | $sql_result = $this->db->query( |
| | | "SELECT idx, headers, structure |
| | |
| | | var $d_parameters = array(); |
| | | var $ctype_parameters = array(); |
| | | |
| | | function __clone() |
| | | { |
| | | if (isset($this->parts)) |
| | | foreach ($this->parts as $idx => $part) |
| | | if (is_object($part)) |
| | | $this->parts[$idx] = clone $part; |
| | | } |
| | | } |
| | | |
| | | |