diff -r 000000000000 -r 89d6a7a84779 Symbian3/SDK/Source/GUID-0DA1FA9A-0F61-580D-922F-02B33CEA09D6.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-0DA1FA9A-0F61-580D-922F-02B33CEA09D6.dita Thu Jan 21 18:18:20 2010 +0000 @@ -0,0 +1,44 @@ + + + + + +Reading +Email Messages Using the Plain Text APIThis tutorial explains how to read email messages using the plain +text API. +
Introduction

You can download and +store email messages using the CMsvPlainBodyText API, and +read them using the CImPlainBodyText API.

+
Procedure
    +
  1. Use the TMsvId aMessageId parameter +of the downloaded email to create the CMsvEntry class.

  2. +
  3. Use the CMsvEntry class +to create the CImEmailMessage object.

  4. +
  5. Call the CImEmailMessage::OpenPlainBodyTextForReadL() function +to get the CMsvPlainBodyText instance, passing in the number +of characters that will be populated for each read operation.

  6. +
  7. Use the CImPlainBodyText::NextChunkL() function +or the CImPlainBodyText::PreviousChunkL() function to retrieve +the body text of the message.

    Note: The NextChunkL() function +is used to get the data of the email message in chunks and in sequential order +from the beginning of the body text to the end of it. PreviousChunkL() is +used to get the chunk that is previously retrieved by the NextChunkL() function. +The size of the chunk is specified in the call to the OpenPlainBodyTextForReadL() function.

    Email +applications must check the length of the chunk populated. If the length is +zero (0) it indicates that it has reached the last chunk of the previous read +operation.

  8. +
+
+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