| | |
| | | $count = iil_C_CountMessages($this->conn, $mailbox); |
| | | } |
| | | |
| | | if (is_array($a_mailbox_cache[$mailbox])) |
| | | if (!is_array($a_mailbox_cache[$mailbox])) |
| | | $a_mailbox_cache[$mailbox] = array(); |
| | | |
| | | $a_mailbox_cache[$mailbox][$mode] = (int)$count; |
| | |
| | | $key, |
| | | $index, |
| | | $headers->uid, |
| | | substr((string)$this->decode_header($headers->subject, TRUE), 0, 128), |
| | | substr((string)$this->decode_header($headers->from, TRUE), 0, 128), |
| | | substr((string)$this->decode_header($headers->to, TRUE), 0, 128), |
| | | substr((string)$this->decode_header($headers->cc, TRUE), 0, 128), |
| | | (string)substr($this->decode_header($headers->subject, TRUE), 0, 128), |
| | | (string)substr($this->decode_header($headers->from, TRUE), 0, 128), |
| | | (string)substr($this->decode_header($headers->to, TRUE), 0, 128), |
| | | (string)substr($this->decode_header($headers->cc, TRUE), 0, 128), |
| | | (int)$headers->size, |
| | | serialize($headers)); |
| | | } |