Browse Source

Complete Marc's fix for untagged [PARSE] response to THREAD

alex-brainstorm 22 years ago
parent
commit
4888607a79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/imap_messages.php

+ 1 - 1
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;
            }