changed preg_match from /AU to /AUi flags to catch headers case insensitive
[squirrelmail.git] / functions / imap_messages.php
index 33b962b6f5f407aa6b1036e85452ac24bb287638..8502d42cb2643e836b53af9e755e9d3913e5980b 100755 (executable)
@@ -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 = '';