Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2008

    Post [Moved] How to move message of Inbox to new folder?

    Thanks first.

    Here is the code to move a new received message in Inbox
    to a new folder under "My folder" folder,
    but it did not work as I expected.

    //======================================code start=============================
    void CMySMSHandler::MoveToFolderL( TMsvId aMessageId, TMsvId aFolder )
    iSmsMtm->SwitchCurrentEntryL( aMessageId );
    TMsvSelectionOrdering selection;
    CMsvEntry* parentEntry = CMsvEntry::NewL( iSmsMtm->Session(),
    iSmsMtm->Entry().Entry().Parent(), selection );
    // Move the message
    parentEntry->MoveL( aMessageId, aFolder );
    CleanupStack::PopAndDestroy(parentEntry); // parentEntry

    //======================================code end=============================

    When it comes to execute the following line,

    parentEntry->MoveL( aMessageId, aFolder );

    it returns immediately to void CMySMSHandler::HandleSessionEventL(TMsvSessionEvent aEvent,
    TAny* aArg1,
    TAny* aArg2,
    TAny* aArg3);
    with an error code(just some integer,I don't remember it).

    What is wrong with my code?
    Or what is wrong?

    Would any guy help?

    Thank you a lot.
    I will be back next Monday.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Cheshire, UK

    Re: How to move message of Inbox to new folder?

    This is the Java Forum. I suggest you repost this in the Symbian Messaging Forum.


  3. #3
    Super Contributor
    Join Date
    Apr 2003
    USA, CA

    Re: How to move message of Inbox to new folder?

    Moved to Symbian Messaging forum


Similar Threads

  1. receiving a message both in Inbox and my midlet
    By vinhtung in forum General Messaging
    Replies: 0
    Last Post: 2009-03-18, 03:11
  2. Replies: 6
    Last Post: 2009-02-17, 16:09
  3. How to move files with unknown extensions from inbox to folder on memory card?
    By khadersharif in forum General Development Questions
    Replies: 1
    Last Post: 2008-02-14, 13:32
  4. creating and saving message in IMAP4 folder
    By V_Nemkov in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-10-13, 09:37
  5. How to create a message, and put it into inbox
    By zhoulala in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-04-24, 10:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts