This tutorial explains how to store incoming email messages.
If you want to store the downloaded email message data as 16 bit, then storing is slow as the downloaded message in 8 bit should be converted to 16 bit before it is stored. However, reading and displaying is fast as the email message data is in 16 bit.
If you want to store the downloaded email message data as 8-bit, then reading and displaying it is slow as the 8 bit email message data should be converted to 16 bit before it is displayed. However, storing is fast.
Set CMsvStore to the ID of the email message that needs to be stored, and open it in the write mode.
Use any of the following CMsvPlainBodyText::StoreChunkL() methods to store incoming data:
After the entire email message has been received from the external server, the MTM must call the CommitL() method of CMsvPlainBodyText to complete the store operation.
If the 8 bit version of the StoreChunkL() function is used for storing, and if the MTM wants the email message to be stored as 16 bit (this is indicated by the TBoolaIs8Bit parameter of InitialisePlainBodyTextForWriteL() ), CMsvPlainBodyText converts and stores the email message in 16 bit based on the charset information provided while initialising CMsvPlainBodyText .
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.