Explorar el Código

Temporary fix for problem when reading a message and you get some weird
error message.

Tyler Akins hace 24 años
padre
commit
dc7871ef8b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      functions/mime.php

+ 2 - 2
functions/mime.php

@@ -361,8 +361,8 @@
       // that it is the first one.  That is usually the case anyway.
       if (!$ent_id) $ent_id = 1;
 
-      fputs ($imap_stream, "a001 FETCH $id BODY[$ent_id]\r\n");
-      $data = sqimap_read_data ($imap_stream, 'a001', true, $response, $message);
+      fputs ($imap_stream, "a010 FETCH $id BODY[$ent_id]\r\n");
+      $data = sqimap_read_data ($imap_stream, 'a010', true, $response, $message);
       $topline = array_shift($data);
       while (! ereg('\* [0-9]+ FETCH ', $topline) && data)
           $topline = array_shift($data);