diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-62166BC9-D0BC-5070-BC57-2A1F4948BAFE.dita --- a/Symbian3/PDK/Source/GUID-62166BC9-D0BC-5070-BC57-2A1F4948BAFE.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-62166BC9-D0BC-5070-BC57-2A1F4948BAFE.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,46 +1,46 @@ - - - - - -Restoring -Email MessagesThis tutorial exaplins hwo to restore email messages for sending -in chunks. -
Procedure
    -
  1. The MTM that needs to -restore message data from message store in chunks should get the CMsvPlainBodyText object -using the InitialisePlainBodyTextForReadL() method of CMsvStore.

  2. -
  3. Set CMsvStore to -the ID whose body text needs to be stored, and open it in the read mode.

  4. -
  5. Use any of the following CMsvPlainBodyText::NextChunkL() methods -to get the email message in chunks:

      -
    1. TDes8 &aChunk

    2. -
    3. TDes8 &aChunk, TRequestStatus &aStatus

    4. -
    5. TDes16 &aChunk

    6. -
    7. TDes16 &aChunk, TRequestStatus &aStatus

    8. -

    The length of the chunk to be restored in a single call to NextChunkL() is -decided by the MTM, when it initialises CMsvPlainBodyText for -the read operation.

    The email application can call NextChunkL() until -the length of the chunk populated by NextChunkL() is 0.
  6. -
  7. The retrieved message -data can be sent by the MTM in chunks.

  8. -
The MTM can also use the existing CMsvStore::RestoreBodyTextL() method -to retrieve the entire body text in a single operation. To do this, the plain -text body of the email message, which is stored in the message store, will -be copied to the CRichText reference and passed to RestoreBodyTextL().
-
-Storing Downloaded -Email Messages -Chunk Method -to Process Emails -Imap4Example: -An Email manager using IMAP4 and SMTP -Pop3Example: -An Email manager using POP3 and SMTP + + + + + +Restoring +Email MessagesThis tutorial exaplins hwo to restore email messages for sending +in chunks. +
Procedure
    +
  1. The MTM that needs to +restore message data from message store in chunks should get the CMsvPlainBodyText object +using the InitialisePlainBodyTextForReadL() method of CMsvStore.

  2. +
  3. Set CMsvStore to +the ID whose body text needs to be stored, and open it in the read mode.

  4. +
  5. Use any of the following CMsvPlainBodyText::NextChunkL() methods +to get the email message in chunks:

      +
    1. TDes8 &aChunk

    2. +
    3. TDes8 &aChunk, TRequestStatus &aStatus

    4. +
    5. TDes16 &aChunk

    6. +
    7. TDes16 &aChunk, TRequestStatus &aStatus

    8. +

    The length of the chunk to be restored in a single call to NextChunkL() is +decided by the MTM, when it initialises CMsvPlainBodyText for +the read operation.

    The email application can call NextChunkL() until +the length of the chunk populated by NextChunkL() is 0.
  6. +
  7. The retrieved message +data can be sent by the MTM in chunks.

  8. +
The MTM can also use the existing CMsvStore::RestoreBodyTextL() method +to retrieve the entire body text in a single operation. To do this, the plain +text body of the email message, which is stored in the message store, will +be copied to the CRichText reference and passed to RestoreBodyTextL().
+
+Storing Downloaded +Email Messages +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