email - java.mail mark message as unread -


i building automatic mail processor application , parsing emails 1 one. if parsing 1 of messages fails mark message unread? how mark message unread please?

thank you

messageobject.setflag(flags.flag.seen, false);

the first parameter flag, second 1 it's if want negate flag, seen flase unseen.

ps: need use imap, can't pop3


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -