summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-09 16:35:20 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-09 16:35:20 +0000
commitb725c295d627ec806011a28a95579cfa0d400c0c (patch)
tree9c0272f3d2e02717b485305cf48d24fc4e6c7fa5 /roundcubemail/program/include/rcube_imap.php
parent8d4c974905ca98c10436cfc39be91d9fa259b00f (diff)
- fix \Seen flag setting with enable_caching=true (#1485843)
git-svn-id: https://svn.roundcube.net/trunk@2462 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
-rw-r--r--roundcubemail/program/include/rcube_imap.php10
1 files changed, 2 insertions, 8 deletions
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