Refiling and deleting is not processed unless you type `x'. So, if you press `u' to unmark before you type `x', messages do not disappear accidentally.
Here is a summary for unmark commands.