I have a mailet that needs to set the $label3 message flag in certain
emails going through the pipeline prior to being stored in the
repository. In my mailet:
mail.getMessage().setFlags(new Flags("$label3"), true);
mail.getMessage().saveChanges();
But the flags are not being saved. Messages with this flag will appear
as a different color in Thunderbird. I had a different way of setting
flags in v3b5 which worked back then. There is a parameter on
mailbox.appendMessage(...) which is what my old ToFolder clone was
using. The new way in the ToSenderFolder, etc is to use
MailBoxAppender.append(...) which does not include an option for
including flags. Hence my attempt at putting the flags in the message
prior to writing to the mailbox. But that doesn't seem to be working.
Should what I'm doing above work? If not, is there another way to get
flags to be stored along with messages?
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org