From 077070381f4e97e98c5edf3ce6b456c4c57d057d Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 05 Jun 2008 13:31:57 -0400
Subject: [PATCH] #1485106
---
CHANGELOG | 4 ++++
program/include/rcube_imap.php | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index b5acc62..7a0ac90 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,10 @@
CHANGELOG RoundCube Webmail
---------------------------
+2008/06/05 (alec)
+----------
+- Fix removing messages from search set after deleting them (#1485106)
+
2008/06/03 (alec)
----------
- imap.inc: Fixed iil_MultLine(): use iil_ReadBytes() instead of iil_ReadLine()
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 5e56eed..43c3117 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1466,7 +1466,6 @@
if (!is_array($a_uids))
return false;
-
// convert uids to message ids
$a_mids = array();
foreach ($a_uids as $uid)
@@ -1483,7 +1482,7 @@
}
// remove message ids from search set
- if ($moved && $this->search_set && $mailbox == $this->mailbox)
+ if ($deleted && $this->search_set && $mailbox == $this->mailbox)
$this->search_set = array_diff($this->search_set, $a_mids);
// remove deleted messages from cache
--
Gitblit v1.9.1