This tutorial explains how to edit email messages stored as drafts in plain text format.
Email messages can be stored as drafts by any of the following methods:
Using the CImEmailOperation::CreateNewL() function with nine parameters and setting the TBool parameter as ETrue.
Using the CImEmailOperation::CreateForwardL() or CImEmailOperation::CreateReplyL() function on a message that is downloaded and stored in plain text format.
Use the TMsvId aMessageId parameter of the message (stored in the Draft directory) to create a new instance of the CMsvEntry class.
Use the CMsvEntry object to create a CImEmailMessage object.
Call the CImEmailMessage::GetBodyTextL() function to get the body text of the message, in the CRichText class.
If you want to use the rich text, complete the following step 1. If you want to store the body text in plain text, complete the following steps from 2 to 4.
Call the CImEmailMessage::StoreBodyTextL() function with the edited CRichText class to store the body of the message.
Call the CImEmailMessage::OpenPlainBodyTextForWriteL() function to get CImPlainBodyText.
Call the CImPlainBodyText::StoreRichTextAsPlainTexL() function and pass the edited CRichText class to store the message.
Call the CImPlainBodyText::CommitL() function to complete the editing operation.
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.