Author: Alexandru Stanoi
Date: 2007-05-07 10:35:11 +0200 (Mon, 07 May 2007)
New Revision: 5122

Log:
- More advanced IDs generation for POP3 to accomodate for message numbers
  greater than 255.

Modified:
   trunk/Mail/tests/transports/transport_pop3_test.php

Modified: trunk/Mail/tests/transports/transport_pop3_test.php
===================================================================
--- trunk/Mail/tests/transports/transport_pop3_test.php 2007-05-07 08:35:02 UTC 
(rev 5121)
+++ trunk/Mail/tests/transports/transport_pop3_test.php 2007-05-07 08:35:11 UTC 
(rev 5122)
@@ -497,7 +497,8 @@
         $days = (int)( ( $today - $refDate ) / ( 24 * 60 * 60 ) );
         for ( $i = 0; $i < count( self::$ids ); $i++ )
         {
-            self::$ids[$i] = sprintf( "000000%2x4420e93a", self::$ids[$i] + 4 
* $days );
+            $messageNr = str_pad( sprintf( "%x", self::$ids[$i] + 4 * $days ), 
8, '0', STR_PAD_LEFT );
+            self::$ids[$i] = "{$messageNr}4420e93a";
         }
         return new PHPUnit_Framework_TestSuite( "ezcMailTransportPop3Test" );
     }

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to