javamail mark gmail message as read
First of all, you can’t mark a message as read if you are using a POP3 server – the POP3 protocol doesn’t support that. However, the IMAP v4 protocol does. You might think the way to do this is to get the message, set the Flags.Flag.SEEN flag to true, and then call message.saveChanges(). Oddly, this … Read more