Ver Fonte

changed the fetch command for headers to be more flexable across
different servers

nehresma há 25 anos atrás
pai
commit
a4e05de6de
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      functions/mailbox.php

+ 1 - 1
functions/mailbox.php

@@ -60,7 +60,7 @@
          } else {
          } else {
             $rel_end = $end;
             $rel_end = $end;
          }
          }
-         fputs($imapConnection, "messageFetch FETCH $rel_start:$rel_end RFC822.HEADER.LINES (From Subject Date)\n");
+         fputs($imapConnection, "messageFetch FETCH $rel_start:$rel_end BODY[HEADER.FIELDS (From Subject Date)]\n");
          $read = fgets($imapConnection, 1024);
          $read = fgets($imapConnection, 1024);
 
 
          while ((substr($read, 0, 15) != "messageFetch OK") && (substr($read, 0, 16) != "messageFetch BAD")) {
          while ((substr($read, 0, 15) != "messageFetch OK") && (substr($read, 0, 16) != "messageFetch BAD")) {