diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-DF4C1226-E4D1-5701-BA55-8701754129D1.dita --- a/Symbian3/PDK/Source/GUID-DF4C1226-E4D1-5701-BA55-8701754129D1.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-DF4C1226-E4D1-5701-BA55-8701754129D1.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,51 +1,51 @@ - - - - - -Overriding -the Charset when Reading Email Message Data -

This tutorial explains how to override the charset when reading email message -data.

-

If the email message is stored in 8-bit format, the email application can -retrieve the data stored using a new charset that is set by it.

-
Procedure

Messages stored as rich text

For -retrieving the message body text that has been stored in 8-bit and rich text -format with a new character set using the RestoreBodyTextL() function, -complete the following steps:

    -
  1. Use the TMsvId aMessageId parameter of the message -body text to get the CMsvEntry class.

  2. -
  3. Use the CMsvEntry::ReadStoreL() method to get the CMsvStore class.

  4. -
  5. Call theCMsvStore::RestoreBodyTextL() method that -takes CRichText& aRichTextBody and TUint aCharsetOverride parameters.

  6. -
  7. Pass the new charset, with which to retrieve the body text as TUint -aCharsetOverride parameter.

  8. -

Messages stored as plain text

For retrieving the message -body text that has been stored in 8-bit and plain text format with a new character -set using the RestoreBodyTextL() function, complete the following steps:

    -
  1. Use the TMsvId aMessageId parameter of the message -body text to get the CMsvEntry class.

  2. -
  3. Use the CMsvEntry::ReadStoreL() function to get -the CMsvStore class.

  4. -
  5. Call the CMsvStore::InitialisePlainBodyTextForReadL() function -to get the CMsvPlainBodyText object.

  6. -
  7. Call the CMsvPlainBodyText::SetCharacterSetL() function -with the new charset ID with which to retrieve the body text.

  8. -
  9. Call the CMsvPlainBodyText::NextChunkL() function -or the CMsvPlainBodyText::PreviousChunkL() function -to get the body text in chunks.

  10. -
-
-Chunk Method -to Process Emails -Imap4Example: -An Email manager using IMAP4 and SMTP -Pop3Example: -An Email manager using POP3 and SMTP + + + + + +Overriding +the Charset when Reading Email Message Data +

This tutorial explains how to override the charset when reading email message +data.

+

If the email message is stored in 8-bit format, the email application can +retrieve the data stored using a new charset that is set by it.

+
Procedure

Messages stored as rich text

For +retrieving the message body text that has been stored in 8-bit and rich text +format with a new character set using the RestoreBodyTextL() function, +complete the following steps:

    +
  1. Use the TMsvId aMessageId parameter of the message +body text to get the CMsvEntry class.

  2. +
  3. Use the CMsvEntry::ReadStoreL() method to get the CMsvStore class.

  4. +
  5. Call theCMsvStore::RestoreBodyTextL() method that +takes CRichText& aRichTextBody and TUint aCharsetOverride parameters.

  6. +
  7. Pass the new charset, with which to retrieve the body text as TUint +aCharsetOverride parameter.

  8. +

Messages stored as plain text

For retrieving the message +body text that has been stored in 8-bit and plain text format with a new character +set using the RestoreBodyTextL() function, complete the following steps:

    +
  1. Use the TMsvId aMessageId parameter of the message +body text to get the CMsvEntry class.

  2. +
  3. Use the CMsvEntry::ReadStoreL() function to get +the CMsvStore class.

  4. +
  5. Call the CMsvStore::InitialisePlainBodyTextForReadL() function +to get the CMsvPlainBodyText object.

  6. +
  7. Call the CMsvPlainBodyText::SetCharacterSetL() function +with the new charset ID with which to retrieve the body text.

  8. +
  9. Call the CMsvPlainBodyText::NextChunkL() function +or the CMsvPlainBodyText::PreviousChunkL() function +to get the body text in chunks.

  10. +
+
+Chunk Method +to Process Emails +Imap4Example: +An Email manager using IMAP4 and SMTP +Pop3Example: +An Email manager using POP3 and SMTP
\ No newline at end of file