From 297e99ab76ec208cf2653f37dd0b0f3c0bc4ca89 Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Fri, 18 Jul 2003 11:24:32 +0000 Subject: [PATCH] Complete Marc's fix for untagged [PARSE] response to THREAD git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5335 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index 96ebc720..1db91fd9 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -353,7 +353,7 @@ function get_thread_sort ($imap_stream) { $thread_test = sqimap_run_command ($imap_stream, $query, true, $response, $message, $uid_support); if (isset($thread_test[0])) { for ($i=0,$iCnt=count($thread_test);$i<$iCnt;++$i) { - if (preg_match("/^\* THREAD (.+)$/", $thread_test[0], $regs)) { + if (preg_match("/^\* THREAD (.+)$/", $thread_test[$i], $regs)) { $thread_list = trim($regs[1]); break; } -- 2.25.1