×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    128

    List of message folders

    I want to get a list of message folders (like inbox, outbox, drafts, user created folders) and then i want to iterate over each folder to get message from inside.

    Is there any API for the same??

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: List of message folders

    have you gone through CMsvSession::GetEntryL(KMsvRootIndexEntryId)

  3. #3
    Regular Contributor
    Join Date
    Dec 2009
    Posts
    77

    Re: List of message folders

    Thats what symbain messaging api is all about. read and understand the concept behind it.

    Go through the related wiki articles.http://wiki.forum.nokia.com/index.ph...aging_Articles

    start from root index entry. inbox , oubox etc are its childs. Than itrate over those childs too.

  4. #4
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    128

    Re: List of message folders

    Right now just focusing on folder list


    RArray<TMsvEntry> aMailArray;
    CMsvEntry* Entrie = aSession->GetEntryL(KMsvRootIndexEntryId);

    CleanupStack::PushL(Entrie);
    if(Entrie->Count)
    CMsvEntrySelection* entries = Entrie->ChildrenL();
    CleanupStack::PushL(entries);
    int count=Entrie->Count();
    TBuf<1000> folderList;
    CConsoleBase *console;
    console=Console::NewL(_L16("console"),TSize(100,100));
    for(TInt i = (Entrie->Count() - 1); i >= 0; i--)
    {
    TMsvEntry temp = Entrie->ChildDataL(entries->At(i));

    folderList.Append(temp.iDetails);
    folderList.Append(_L("\n"));

    }
    console->Printf(folderList);
    console->Getch();
    delete console;
    CleanupStack::PopAndDestroy(entries);

    I am trying this code, but i am able to see only 2 folders. None of "Inbox/outbox/draft" is visible by it.

    Am i doing something wrong?

  5. #5
    Regular Contributor
    Join Date
    Aug 2005
    Location
    India
    Posts
    399

    Re: List of message folders

    Try with entries->count() instead of Entrie->Count() in for loop and see if it fixes the problem.

  6. #6
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    128

    Re: List of message folders

    no, it doesn't fix the issue

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: List of message folders

    try this
    Code:
        CMsvEntry* currentEntry = iMsvSession->GetEntryL(KMsvRootIndexEntryId);
        CleanupStack::PushL(currentEntry);
    
        // don't sort the entries
        currentEntry->SetSortTypeL(TMsvSelectionOrdering(KMsvNoGrouping,EMsvSortByNone, ETrue));
        TInt count=currentEntry->Count();
    
        // loop for every child entry of the root index
        for(TInt i = 0;i<count;i++) 
        	{
        	const TMsvEntry& child = (*currentEntry)[i];
    		TBuf<125> buffer;
    		buffer.Copy(child.iDetails);
    		// Details is buffer
    		// ID is child.Id()
    
        	}
        CleanupStack::PopAndDestroy(currentEntry);

  8. #8
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    128

    Re: List of message folders

    it shows only "local"

Similar Threads

  1. Debugger abnormal termination
    By oldmaryan in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 13
    Last Post: 2010-01-10, 17:36
  2. Message popup if IMPLICIT List element is selected?
    By stechbeitel in forum Mobile Java General
    Replies: 5
    Last Post: 2009-04-02, 17:03
  3. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  4. problem with 8310 to send a Service loading push message
    By Nokia_Archive in forum General Messaging
    Replies: 2
    Last Post: 2002-10-10, 08:38
  5. Problem to send a service loading push message for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 11:19

Posting Permissions

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