changed preg_match from /AU to /AUi flags to catch headers case insensitive
authorcentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 23 Jun 2002 10:31:28 +0000 (10:31 +0000)
committercentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 23 Jun 2002 10:31:28 +0000 (10:31 +0000)
(before that headers like SUBJECT: resulted in a "unkown subject")

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2991 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php

index 33b962b..8502d42 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 = '';