email/pop3andsmtpmtm/servermtmutils/src/imcvrecv.cpp
changeset 52 12db4185673b
parent 31 ebfee66fde93
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   413 	TResourceReader reader;
   413 	TResourceReader reader;
   414 	reader.SetBuffer(buf);
   414 	reader.SetBuffer(buf);
   415 	iStore8BitData = reader.ReadInt8();
   415 	iStore8BitData = reader.ReadInt8();
   416 	CleanupStack::PopAndDestroy(buf);
   416 	CleanupStack::PopAndDestroy(buf);
   417 	
   417 	
   418 	//read iStorePlainBodyText flag for writing bodytext chunk bu chunk.
   418 	//read iStorePlainBodyText flag for writing bodytext chunk by chunk.
   419 	buf = resFile.AllocReadLC( STORE_PLAIN_BODY_TEXT );
   419 	//For Pop case, it always writes bodytext chunk by chunk
   420 	reader.SetBuffer(buf);
   420 	iStorePlainBodyText = 1;
   421 	iStorePlainBodyText = reader.ReadInt8();
       
   422 	CleanupStack::PopAndDestroy(buf);
       
   423 
   421 
   424 
   422 
   425 	buf = resFile.AllocReadLC( REMOVED_ATTACHMENT_TAG );
   423 	buf = resFile.AllocReadLC( REMOVED_ATTACHMENT_TAG );
   426 	reader.SetBuffer(buf);
   424 	reader.SetBuffer(buf);
   427 	iRemovedAttachmentTag = reader.ReadTPtrC().AllocL();
   425 	iRemovedAttachmentTag = reader.ReadTPtrC().AllocL();
  3974 		if ( ParseRfc2047ParameterInfoL(param, rBuffer) == EFalse )
  3972 		if ( ParseRfc2047ParameterInfoL(param, rBuffer) == EFalse )
  3975 			{
  3973 			{
  3976 			iLex.UnGetToMark(initMark);
  3974 			iLex.UnGetToMark(initMark);
  3977 			ParseRfc2231ParameterInfoL(aTag, rBuffer, offset );
  3975 			ParseRfc2231ParameterInfoL(aTag, rBuffer, offset );
  3978 			}
  3976 			}
  3979 			CleanupStack::Pop(rBuffer8);
  3977 		if( param.Length() > 0 )
       
  3978 		    {
       
  3979             CleanupStack::Pop(rBuffer8);
       
  3980 		    }
       
  3981 			
  3980 		}
  3982 		}
  3981 	}
  3983 	}
  3982 
  3984 
  3983 
  3985 
  3984 // Detect encoding of form =?charset?Q?" Text "?=
  3986 // Detect encoding of form =?charset?Q?" Text "?=