email/imap4mtm/imapsession/src/cimapfetchbody.cpp
branchRCL_3
changeset 77 da6ac9d688df
parent 60 7fdbb852d323
equal deleted inserted replaced
71:17302fa075e1 77:da6ac9d688df
   279 	// check for BINARY capability
   279 	// check for BINARY capability
   280 	// Issue binary fetch for plain/text part only
   280 	// Issue binary fetch for plain/text part only
   281 	const CImapCapabilityInfo& capabilityInfo = iParent.CapabilityInfo();
   281 	const CImapCapabilityInfo& capabilityInfo = iParent.CapabilityInfo();
   282 	TBool binaryCapExist = capabilityInfo.QueryFlag(CImapCapabilityInfo::EBinaryCap);	
   282 	TBool binaryCapExist = capabilityInfo.QueryFlag(CImapCapabilityInfo::EBinaryCap);	
   283 #endif
   283 #endif
   284 	if (iRequestCount == 0)
   284 	if (iRequestCount == 0 && !iFetchBodyInfo.iEmbed)
   285 		{
   285 		{
   286 		bufLength += iFetchBodyInfo.RelativePath()->Length();
   286 		bufLength += iFetchBodyInfo.RelativePath()->Length();
   287 		
   287 		
   288 		if (iPeek)
   288 		if (iPeek)
   289 			{
   289 			{
   345 	//now create the command	
   345 	//now create the command	
   346 	HBufC8* buffer = HBufC8::NewL(bufLength);				
   346 	HBufC8* buffer = HBufC8::NewL(bufLength);				
   347 	delete iOutputBuffer;
   347 	delete iOutputBuffer;
   348 	iOutputBuffer=buffer;
   348 	iOutputBuffer=buffer;
   349 
   349 
   350 	if (iRequestCount == 0)
   350 	if (iRequestCount == 0 && !iFetchBodyInfo.iEmbed)
   351 		{
   351 		{
   352 		if(iPeek)
   352 		if(iPeek)
   353 			{
   353 			{
   354 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)	
   354 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)	
   355 			if(binaryCapExist && iFetchBodyInfo.IsText())
   355 			if(binaryCapExist && iFetchBodyInfo.IsText())
   376 				}
   376 				}
   377 			}
   377 			}
   378 		}
   378 		}
   379 	else
   379 	else
   380 		{
   380 		{
       
   381 		iFetchBodyInfo.iEmbed = EFalse;
   381 		if(iPeek)
   382 		if(iPeek)
   382 			{
   383 			{
   383 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)	
   384 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)	
   384 			if(binaryCapExist && iFetchBodyInfo.IsText())
   385 			if(binaryCapExist && iFetchBodyInfo.IsText())
   385 				{
   386 				{