Kaynağa Gözat

re-fixed bug for fetching headers. (:

Luke Ehresman 25 yıl önce
ebeveyn
işleme
24b6b81305
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      functions/imap_messages.php

+ 2 - 1
functions/imap_messages.php

@@ -40,7 +40,8 @@
     **  Returns some general header information -- FROM, DATE, and SUBJECT
     ******************************************************************************/
    function sqimap_get_small_header ($imap_stream, $id, &$from, &$subject, &$date) {
-      fputs ($imap_stream, "a001 FETCH $id:$id BODY[HEADER.FIELDS (DATE FROM SUBJECT)]\r\n");
+      //fputs ($imap_stream, "a001 FETCH $id BODY[HEADER.FIELDS (DATE FROM SUBJECT)]\r\n");
+      fputs ($imap_stream, "a001 FETCH $id RFC822.HEADER\r\n");
       $read = sqimap_read_data ($imap_stream, "a001", true, $response, $message);
 
       $subject = _("(no subject)");