Changeset 2465 in subversion
- Timestamp:
- May 10, 2009 4:59:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.php
r2462 r2465 797 797 // delete from cache 798 798 if ($cache_index[$headers->id] && $cache_index[$headers->id] == $headers->uid) 799 $this->remove_message_cache($cache_key, $headers-> id);799 $this->remove_message_cache($cache_key, $headers->uid); 800 800 801 801 $deleted_count++; … … 928 928 if (isset($cache_index[$id])) 929 929 { 930 $this->remove_message_cache($cache_key, $ id);930 $this->remove_message_cache($cache_key, $cache_index[$id]); 931 931 unset($cache_index[$id]); 932 932 } … … 942 942 { 943 943 foreach ($cache_index as $id => $uid) 944 $this->remove_message_cache($cache_key, $ id);944 $this->remove_message_cache($cache_key, $uid); 945 945 } 946 946 } … … 1437 1437 { 1438 1438 $mode = $o_part->encoding == 'base64' ? 3 : ($o_part->encoding == 'quoted-printable' ? 1 : 2); 1439 $body = iil_C_HandlePartBody($this->conn, $this->mailbox, $msg_id, $part, $mode);1439 $body = iil_C_HandlePartBody($this->conn, $this->mailbox, '', $part, $mode); 1440 1440 1441 1441 // we have to decode the part manually before printing … … 1568 1568 foreach ($uids as $uid) 1569 1569 if ($cached_headers = $this->get_cached_message($cache_key, $uid)) 1570 $this->remove_message_cache($cache_key, $ this->_uid2id($uid));1570 $this->remove_message_cache($cache_key, $uid); 1571 1571 1572 1572 // close and re-open connection … … 2431 2431 * @access private 2432 2432 */ 2433 function remove_message_cache($key, $ index)2433 function remove_message_cache($key, $uid) 2434 2434 { 2435 2435 if (!$this->caching_enabled) … … 2440 2440 WHERE user_id=? 2441 2441 AND cache_key=? 2442 AND idx=?",2442 AND uid=?", 2443 2443 $_SESSION['user_id'], 2444 2444 $key, 2445 $ index);2445 $uid); 2446 2446 } 2447 2447
Note: See TracChangeset
for help on using the changeset viewer.
