×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Get POP3 emails count

    Hi.
    I'm writing simple email application. It connects to POP3 server asynchroniously. Everything is fine. My question is how to get email count on server before fetching them all. I want to display progress bar and I need to know how many messages there are.
    I'm trying to use "HandleSessionEventL" routine but without any success.
    Please help!
    Thanks!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: Get POP3 emails count

    HandleSessionEventL is a callback method notifying you about happenings inside the messaging server (of the phone itself). Depending on how you are actually fetching the messages, you may or may not have a CMsvOperation object. That is the one you can use for tracking the progress.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Re: Get POP3 emails count

    Hi wizard_hu_.
    Thnx for your reply. I've got the point.
    Now I'm trying to get TPop3Progress from Operation->ProgressL() value (Operation is CMsvOperation* pointer). But I don't know how to cast TPckgBuf to TPop3Progress. My code:
    TPckgBuf<TPop3Progress> iProgressBuf;
    iProgressBuf.Copy( iCurOperation->ProgressL() );
    TPop3Progress ???????
    I've searched over internet, but no success. Pls help me.

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Re: Get POP3 emails count

    Question closed.
    To get total message count I need to get iProgressBuf().iTotalMsgs

Similar Threads

  1. Can we use TMsvEntry::Deleted() in Pop3 Msg service??
    By lalita in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-03-17, 06:16
  2. Help Needed In S60 Pop3 IMap4 Nokia example again
    By mubx2000 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-06-26, 13:20
  3. Count for new mails?
    By symnewbie in forum Symbian C++
    Replies: 0
    Last Post: 2005-06-14, 08:47
  4. Crashing of POP3 client and Email Example application.
    By saurabh2500 in forum Symbian C++
    Replies: 0
    Last Post: 2005-03-31, 14:32
  5. Nokia EMail POP3 header issue
    By McHale in forum General Development Questions
    Replies: 2
    Last Post: 2004-01-10, 08:49

Posting Permissions

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