diff -r 36f374c67aa8 -r 12db4185673b email/pop3andsmtpmtm/servermtmutils/src/imcvrecv.cpp --- a/email/pop3andsmtpmtm/servermtmutils/src/imcvrecv.cpp Tue Jul 06 14:12:40 2010 +0300 +++ b/email/pop3andsmtpmtm/servermtmutils/src/imcvrecv.cpp Wed Aug 18 09:45:25 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -415,11 +415,9 @@ iStore8BitData = reader.ReadInt8(); CleanupStack::PopAndDestroy(buf); - //read iStorePlainBodyText flag for writing bodytext chunk bu chunk. - buf = resFile.AllocReadLC( STORE_PLAIN_BODY_TEXT ); - reader.SetBuffer(buf); - iStorePlainBodyText = reader.ReadInt8(); - CleanupStack::PopAndDestroy(buf); + //read iStorePlainBodyText flag for writing bodytext chunk by chunk. + //For Pop case, it always writes bodytext chunk by chunk + iStorePlainBodyText = 1; buf = resFile.AllocReadLC( REMOVED_ATTACHMENT_TAG ); @@ -3976,7 +3974,11 @@ iLex.UnGetToMark(initMark); ParseRfc2231ParameterInfoL(aTag, rBuffer, offset ); } - CleanupStack::Pop(rBuffer8); + if( param.Length() > 0 ) + { + CleanupStack::Pop(rBuffer8); + } + } }