--- /dev/null
+Submitted By: Hugo Villeneuve <hugo at hugovil dot com>
+Date: 2009-12-12
+Initial Package Version: squirrelmail-1.5.1
+Origin: n/a
+Description: Fix warning:
+ <preg_split() expects parameter 4 to be long, string given>
+
+diff -Naur squirrelmail.orig/functions/imap_messages.php squirrelmail.new/functions/imap_messages.php
+--- squirrelmail.orig/functions/imap_messages.php 2006-02-12 13:21:50.000000000 -0500
++++ squirrelmail.new/functions/imap_messages.php 2009-12-12 16:20:18.000000000 -0500
+@@ -923,7 +923,7 @@
+ if ($read) {
+ if (preg_match('/.+FLAGS\s\((.*)\)\s/AUi',$read[0],$regs)) {
+ if (trim($regs[1])) {
+- $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
++ $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY);
+ }
+ }
+ } else {