Hi all,
I am trying to download mails from a mail server using IMAP . After I download , I would want to set the "Unseen" status to be changed to "Seen" so that when I connect to the server again , I will know to differentiate the ones that I have downloaded already from the new ones.

I tried using the imap_setflag_full function and set the "Seen" and "Flagged" flags.This function returned a boolean 1 to me.But when I connect to the mail server again , the status flags do not seem to reflect what I have set.Because of that,my program keeps on downloading the old ones.

Am I missing anything here? Is there a way to mark the mail as "Read" and check with the status again ?