kali
  • kali
  • 50.25% (Neutral)
  • Newbie Topic Starter
12 years ago
how to set info.IMAP4MailFlags="(\\Seen)" in c#?i want to read only the unread mail in the gmail and think way will work.
can u tell me if any other way exist for reading unread mail only from gmail ?
i can use uid also,any other solution for it.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
12 years ago

how to set info.IMAP4MailFlags="(\\Seen)" in c#?i want to read only the unread mail in the gmail and think way will work.
can u tell me if any other way exist for reading unread mail only from gmail ?
i can use uid also,any other solution for it.

Originally Posted by: kali 




first of all, you can use MarkAsRead method to mark the flags to read.

http://www.emailarchitect.net/eagetmail/sdk/?ct=mailclient_markasread 

secondly, you can use

            oClient.GetMailInfosOption = GetMailInfosOptionType.NewOnly;

MailInfo[] infos = oClient.GetMailInfos();

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.