Browse Source

Added MESSAGE-ID to header array.

gustavf 25 years ago
parent
commit
658948cab9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      functions/imap_messages.php

+ 6 - 0
functions/imap_messages.php

@@ -252,6 +252,12 @@
                $i++;
                $i++;
             }
             }
          }
          }
+         /** MESSAGE ID **/
+         else if (strtolower(substr($read[$i], 0, 11)) == "message-id:") {
+            $header["MESSAGE-ID"] = trim(substr($read[$i], 11));
+            $i++;
+         }
+
 
 
          /** ERROR CORRECTION **/
          /** ERROR CORRECTION **/
          else if (substr($read[$i], 0, 1) == ")") {
          else if (substr($read[$i], 0, 1) == ")") {