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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -