Question

I give each message in client's inbox a default custom tag, let's say "important"

Flags flag = new Flags("important");
message.setFlags(flag,true);

Isn't there anyway to remove this tag, I don't need it to anymore, and it shouldn't be persisted in the database anymore... It's not about setting it false instead of true, i just want to remove it permanently!

Was it helpful?

Solution

It seems like we can remove message flags in this code, as the javamail API source code comments says. I tried it and it works.

  Flags flag = new Flags("IMPORTANT");
  message.setFlags(flag,false);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top