Replaced preg_match with ereg (speed)
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 27 Jan 2001 22:06:50 +0000 (22:06 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 27 Jan 2001 22:06:50 +0000 (22:06 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@971 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index c91c3ec1381775b6cc2e7af489da446b0d8f957d..f424e0415fae412df7a202e4012bec22d1769529 100755 (executable)
@@ -16,7 +16,7 @@
       global $color, $squirrelmail_language, $imap_general_debug;
 
       $read = fgets($imap_stream, 9096);
-      if (preg_match ("/^\* [0-9]+ FETCH.*{([0-9]+)}/", $read, $regs)) {
+      if (ereg("^\* [0-9]+ FETCH.*{([0-9]+)}", $read, $regs)) {
          $size = $regs[1];
       }