Complete Marc's fix for untagged [PARSE] response to THREAD
authoralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jul 2003 11:24:32 +0000 (11:24 +0000)
committeralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jul 2003 11:24:32 +0000 (11:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5335 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php

index 96ebc7205c1f8ed18d8667dbd6ab474c2c8944bb..1db91fd95d8e2699c2b43ba4bcc6e07d755e0399 100755 (executable)
@@ -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;
            }