email/imap4mtm/imapsession/src/cimapsession.cpp
branchRCL_3
changeset 24 696bfeff199e
parent 22 1367103c24e2
--- a/email/imap4mtm/imapsession/src/cimapsession.cpp	Mon Jun 21 15:36:19 2010 +0300
+++ b/email/imap4mtm/imapsession/src/cimapsession.cpp	Thu Jul 15 18:34:37 2010 +0300
@@ -1412,21 +1412,14 @@
 				
 			if (err != KErrNone)
 				{
-                if(err == KErrImapCorrupt)
-                    {
-                    continueReadingData = ETrue;
-                    }
-                else
-                    {
-                    // As well as completing, destroy the command to help free up resources.
-                    CompleteAndDestroyCommand(err, ETrue);
+				// As well as completing, destroy the command to help free up resources.
+				CompleteAndDestroyCommand(err, ETrue);
 
-                    // Don't allow the session to be called again.
-                    SetSessionState(ESessionUnrecoverable);
-                    
-                    return;
-                    }
-				}// end of  if (err != KErrNone)
+				// Don't allow the session to be called again.
+				SetSessionState(ESessionUnrecoverable);
+				
+				return;
+				}
 				
 			// If a literal block is expected next, then find out how big it is expected to be.
 			switch (commandParseState)