/** * Send IMAP expunge command and clear cache * * @see rcube_imap::expunge() * @param string Mailbox name * @param boolean False if cache should not be cleared * @param string List of UIDs to remove, separated by comma * @return boolean True on success * @access private */ private function _expunge($mailbox, $clear_cache = TRUE, $uids = NULL) { if ($uids && $this->get_capability('UIDPLUS')) { $a_uids = is_array($uids) ? join(',', $uids) : $uids; } else { $a_uids = NULL; } $result = iil_C_Expunge($this->conn, $mailbox, $a_uids); if ($result >= 0 && $clear_cache) { $this->clear_message_cache($mailbox . '.msg'); $this->_clear_messagecount($mailbox); } return $result; }
/** * Send IMAP expunge command and clear cache * * @see rcube_imap::expunge() * @access private */ function _expunge($mailbox, $clear_cache = TRUE) { $result = iil_C_Expunge($this->conn, $mailbox); if ($result >= 0 && $clear_cache) { $this->clear_message_cache($mailbox . '.msg'); $this->_clear_messagecount($mailbox); } return $result; }