Browse Source

changed preg_match from /AU to /AUi flags to catch headers case insensitive
(before that headers like SUBJECT: resulted in a "unkown subject")

centaurix 23 years ago
parent
commit
7c00d76e60
1 changed files with 7 additions and 7 deletions
  1. 7 7
      functions/imap_messages.php

+ 7 - 7
functions/imap_messages.php

@@ -382,13 +382,13 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $issent) {
     arsort($read_list);
 
     $patterns = array (
-			"/^To:(.*)\$/AU",
-			"/^From:(.*)\$/AU",
-			"/^X-Priority:(.*)\$/AU",
-			"/^Cc:(.*)\$/AU",
-			"/^Date:(.*)\$/AU",
-			"/^Subject:(.*)\$/AU",
-			"/^Content-Type:(.*)\$/AU"
+			"/^To:(.*)\$/AUi",
+			"/^From:(.*)\$/AUi",
+			"/^X-Priority:(.*)\$/AUi",
+			"/^Cc:(.*)\$/AUi",
+			"/^Date:(.*)\$/AUi",
+			"/^Subject:(.*)\$/AUi",
+			"/^Content-Type:(.*)\$/AUi"
 		);
     $regpattern = '';