thomascube
2007-07-03 9e0bb6bcdedd113b7a1496defb5daef98be3dde0
program/lib/imap.inc
@@ -48,6 +48,7 @@
      - Also acceppt LIST responses in iil_C_ListSubscribed()
      - Sanity check of $message_set in iil_C_FetchHeaders(), iil_C_FetchHeaderIndex(), iil_C_FetchThreadHeaders()
      - Implemented UID FETCH in iil_C_FetchHeaders()
      - Abort do-loop on socket errors (fgets returns false)
      - Removed some debuggers (echo ...)
********************************************************/
@@ -130,6 +131,8 @@
   if ($fp){
      do{
         $buffer = fgets($fp, 2048);
         if ($buffer === false)
            break;
         $line.=$buffer;
      }while($buffer[strlen($buffer)-1]!="\n");
   }
@@ -231,6 +234,8 @@
   do{
       $line = iil_ReadReply($conn->fp);
    if ($line === false)
      break;
   }while(!iil_StartsWith($line, "a001 "));
    $a=explode(" ", $line);
    if (strcmp($a[1],"OK")==0){