Add ability to flag and unflag messages.

My workflow contains flagging messages. I think this could be helpful for everyone.
Let me know what you think.