0 votes

I have 10 customers, one for each mail box on Aruba IMAP server.

Every first access into the Inbox folder seems that all mail is marked as “seen”

If I close the application and restart it, I can't really detect whitch mail are "seen" and whitch are "unseen".

Reading some faq in your site, I understood that some server mark the email as seen, perhaps the problem could be from

imap.GetMessageInfoByUID(uids)

and the suggestion is to use imap.PeekMessageByUID(uids) instead of imap.GetMessageInfoByUID(uids).

It is a correct solution?

by

1 Answer

0 votes
 
Best answer

Yes, this is correct solution.

GetMessageInfoByUID marks message as seen on the IMAP server (adds \SEEN flag) while PeekMessageByUID doesn't.

Apart from that both methods work exactly the same.

by (297k points)
...