Explorar el Código

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

alex-brainstorm hace 22 años
padre
commit
4888607a79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
            }