
Originally Posted by
shivsharad
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);