|
|
|
To forward or reply to an existing email message that is originally
stored as plain text using the CImPlainBodyText API,
complete the following steps:
Use the CImEmailOperation::CreateForwardL()
method or CImEmailOperation::CreateReplyL() method to
forward or reply to an email.
The newly created email will be stored in the same format as the original email. In this case, it is the plain text format.
Use the CImEmailOperation::ProgressL() method to
obtain the TMsvId parameter of the newly created email.
This is returned through a
TPckgC<TMsvId> descriptor.
Use the TMsvId aMessageId parameter
to create a CMsvEntry class.
Use the CMsvEntry class to create a
CImEmailMessage object.
Use the CImEmailMessage::GetBodyTextL()function
to get the body text of the message that is being replied to, or forwarded.
This will return a CRichText class.
Condition: If you want to store the email message as plain text, complete the following steps from 1 to 3. If you want to store the email message as rich text, complete the following step 4.
Call the
CImEmailMessage::OpenPlainBodyTextForWriteL() function to
get CImPlainBodyText.
Call the
CImPlainBodyText::StoreRichTextAsPlainTexL() function and
pass the edited CRichText to store the message.
Call the CImPlainBodyText::CommitL()
function to complete the operation.
Edit the CRichText class and call the
CImEmailMessage::StoreBodyTextL() function to store the
edited message body text.