Hello everybody, I am developing messenger type application. Now i want when ever user login he/she will be presented the number of new messages on the mail server.My problem is i am able to retrive the total number of mails but how can i differentiate the new (unread) mails from it. Is there any flags by which i can differentiate the read and unread mails.