This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail: Working with Flags

Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm having trouble working with Flags. I check a e-mail account every minute, and I need to know the messages that I already got, and leave them for other users. So, I'm trying to use user Flags:

The flag is set correctly in the first time, but next time I check the message, the flag is forgotten... I tried to use Flags.Flag.SEEN, and it didn't work. Same reason.

I've already checked if this e-mail account supports this Flags using Folder.getPermanentFlags(), and all this Flags returned.

It's funny...

Anybody can help me?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic