Author: as
Date: Fri Nov 30 14:41:31 2007
New Revision: 6896

Log:
- Removed redundant code from getResponse().

Modified:
    trunk/Mail/src/transports/imap/imap_transport.php

Modified: trunk/Mail/src/transports/imap/imap_transport.php
==============================================================================
--- trunk/Mail/src/transports/imap/imap_transport.php [iso-8859-1] (original)
+++ trunk/Mail/src/transports/imap/imap_transport.php [iso-8859-1] Fri Nov 30 
14:41:31 2007
@@ -2594,26 +2594,18 @@
      */
     protected function getResponse( $tag, $response = null )
     {
-        try
-        {
-            if ( is_null( $response ) )
-            {
-                $response = $this->getLine();
-            }
-            while ( strpos( $response, $tag ) === false )
-            {
-                if ( strpos( $response, ' BAD ' ) !== false ||
-                     strpos( $response, ' NO ' ) !== false )
-                {
-                    break;
-                }
-                $response = $this->getLine();
-            }
-        }
-        catch ( ezcMailTransportException $e )
-        {
-            $this->state = self::STATE_NOT_CONNECTED;
-            throw $e;
+        if ( is_null( $response ) )
+        {
+            $response = $this->getLine();
+        }
+        while ( strpos( $response, $tag ) === false )
+        {
+            if ( strpos( $response, ' BAD ' ) !== false ||
+                 strpos( $response, ' NO ' ) !== false )
+            {
+                break;
+            }
+            $response = $this->getLine();
         }
         return $response;
     }


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to