×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    21

    Not getting unread mails

    hi,
    i am trying to get unread mails from my my mail box,m getting the mail account ,but when trying to get the unread mails through Unread() api ,it shows no unread mails,
    for(TUint i = 0; i != count ; i++)
    {

    rootInboxEntry->SetEntryL(msgList->At( i ) );
    TMsvEntry entry( rootInboxEntry->Entry());
    TBool val =entry.Unread();
    if( entry.Unread() )
    {
    iunreadMsgCount++;
    HBufC* bufferSMS = GetEntryTime(entry);
    CleanupStack::PushL(bufferSMS);
    TMsvId entryId = msgList->At(i);
    iMsgIdArray.AppendL(entryId);

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    India
    Posts
    155

    Re: Not getting unread mails

    Quote Originally Posted by shivsharad View Post
    hi,
    i am trying to get unread mails from my my mail box,m getting the mail account ,but when trying to get the unread mails through Unread() api ,it shows no unread mails,
    for(TUint i = 0; i != count ; i++)
    {

    rootInboxEntry->SetEntryL(msgList->At( i ) );
    TMsvEntry entry( rootInboxEntry->Entry());
    TBool val =entry.Unread();
    if( entry.Unread() )
    {
    iunreadMsgCount++;
    HBufC* bufferSMS = GetEntryTime(entry);
    CleanupStack::PushL(bufferSMS);
    TMsvId entryId = msgList->At(i);
    iMsgIdArray.AppendL(entryId);

    hi change loop like that

    for( TInt i = 0; i < msgList->Count(); i++ )

    and chk what happen ..

    Regards
    Md.kashif

Similar Threads

  1. Replies: 0
    Last Post: 2005-07-27, 11:21
  2. Count for new mails?
    By symnewbie in forum Symbian
    Replies: 0
    Last Post: 2005-06-14, 08:47
  3. Problem in deletion of mails in POP3_IMAP4_Email_Example ??
    By lalita in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-06, 16:34
  4. Replies: 0
    Last Post: 2005-04-06, 16:33
  5. Replies: 0
    Last Post: 2005-03-31, 08:30

Posting Permissions

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