From 06c116bf757d55d17dd03b60e1260ccdb55b2ee9 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 29 Apr 2010 13:22:27 -0400
Subject: [PATCH] - Fix database constraint violation when opening a message (#1486696)

---
 CHANGELOG                      |    1 +
 program/include/rcube_imap.php |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index e81dbce..76d4972 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG RoundCube Webmail
 ===========================
 
+- Fix database constraint violation when opening a message (#1486696)
 - Add 'loading' message while login is in progress (#1486667)
 - Fix quota_zero_as_unlimited (#1486662)
 - Fix folder subscription checking (#1486684)
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index f5b1728..9db6427 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1589,7 +1589,7 @@
             if ($headers->uid && $headers->id)
                 $this->uid_id_map[$mailbox][$headers->uid] = $headers->id;
 
-            $this->add_message_cache($mailbox.'.msg', $headers->id, $headers, NULL, true);
+            $this->add_message_cache($mailbox.'.msg', $headers->id, $headers, NULL);
         }
 
         return $headers;

--
Gitblit v1.9.1