From b725c295d627ec806011a28a95579cfa0d400c0c Mon Sep 17 00:00:00 2001 From: alec Date: Sat, 9 May 2009 16:35:20 +0000 Subject: - fix \Seen flag setting with enable_caching=true (#1485843) git-svn-id: https://svn.roundcube.net/trunk@2462 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_imap.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index 8cb5c6dd0..4073c8a63 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -1566,14 +1566,8 @@ class rcube_imap if ($this->caching_enabled) { foreach ($uids as $uid) - { - $id = $this->_uid2id($uid); - if ($cached_headers = $this->get_cached_message($cache_key, $id)) - { - $this->remove_message_cache($cache_key, $id); - //$this->get_headers($uid); - } - } + if ($cached_headers = $this->get_cached_message($cache_key, $uid)) + $this->remove_message_cache($cache_key, $this->_uid2id($uid)); // close and re-open connection // this prevents connection problems with Courier -- cgit v1.2.3