ipsservices/ipssosplugin/src/ipsplgmessagepartstoreroperation.cpp
changeset 27 9ba4404ef423
parent 20 ecc8def7944a
child 68 83cc6bae1de8
equal deleted inserted replaced
23:2dc6caa42ec3 27:9ba4404ef423
   285 
   285 
   286 	// Get text/html part file for write
   286 	// Get text/html part file for write
   287 	RFile file = aPart->GetContentFileL();
   287 	RFile file = aPart->GetContentFileL();
   288 	CleanupClosePushL(file);
   288 	CleanupClosePushL(file);
   289 
   289 
       
   290     // if we don't do SetSize(0) characters from the original mail are left in the end of the mail
       
   291 	// if the modified mail contains less characters.
       
   292 	User::LeaveIfError( file.SetSize( 0 ) );
       
   293 
   290 	// Write new content to text/html part file - async function
   294 	// Write new content to text/html part file - async function
   291 	file.Write(0, *iDataBuffer, iDataBuffer->Length(), iStatus);
   295 	file.Write( 0, *iDataBuffer, iDataBuffer->Length(), iStatus );
   292 
   296 	
   293 	CleanupStack::PopAndDestroy(2, data16);
   297 	CleanupStack::PopAndDestroy(2, data16);
   294 	SetActive();
   298 	SetActive();
   295 	}
   299 	}