equal
deleted
inserted
replaced
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 } |