소스 검색

fixed (no subject) in message list. it now shows

Luke Ehresman 25 년 전
부모
커밋
8d7c319295
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      functions/imap_messages.php

+ 2 - 0
functions/imap_messages.php

@@ -43,6 +43,8 @@
       fputs ($imap_stream, "a001 FETCH $id:$id RFC822.HEADER.LINES (From Subject Date)\r\n");
       fputs ($imap_stream, "a001 FETCH $id:$id RFC822.HEADER.LINES (From Subject Date)\r\n");
       $read = sqimap_read_data ($imap_stream, "a001", true, $response, $message);
       $read = sqimap_read_data ($imap_stream, "a001", true, $response, $message);
 
 
+      $subject = _("(no subject)");
+      $from = _("Unknown Sender");
       for ($i = 0; $i < count($read); $i++) {
       for ($i = 0; $i < count($read); $i++) {
          if (strtolower(substr($read[$i], 0, 5)) == "from:") {
          if (strtolower(substr($read[$i], 0, 5)) == "from:") {
             $from = sqimap_find_displayable_name(substr($read[$i], 5));
             $from = sqimap_find_displayable_name(substr($read[$i], 5));