From 1d1fdcbf8cd7cce93454eb0b64eaf76975ebdd17 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Tue, 08 Apr 2014 05:32:51 -0400
Subject: [PATCH] Fix splitting message identifiers into UID and folder values

---
 program/lib/Roundcube/rcube_imap.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index 41430db..23cacd4 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -1709,7 +1709,7 @@
 
         // decode combined UID-folder identifier
         if (preg_match('/^\d+-[^,]+$/', $uid)) {
-            list($uid, $folder) = explode('-', $uid);
+            list($uid, $folder) = explode('-', $uid, 2);
         }
 
         // get cached headers
@@ -1745,7 +1745,7 @@
 
         // decode combined UID-folder identifier
         if (preg_match('/^\d+-[^,]+$/', $uid)) {
-            list($uid, $folder) = explode('-', $uid);
+            list($uid, $folder) = explode('-', $uid, 2);
         }
 
         // Check internal cache

--
Gitblit v1.9.1