Apple Mail: Apply Rule to a Folder I know how to setup basic rules to move emails in Apple Mail from the inbox of an email account into folders. Is it possible to do the same thing the other way around, i.e., to move emails that are already within a folder back into the inbox or some folder?

For example: I am moving potential spam emails into the Junk folder on the server and mark them as read before Apple Mail deals with them. Sometimes it happens that emails are wrongly classified as spam and in most cases I can recover those email simply by checking whether the sender is in my contact. Therefore, I would like to apply a simple rule to the Junk folder with Apple Mail and move emails back into the email account's inbox if the sender is in my contact.

Is Apple Mail capable of that?
I figured out it's at possible to apply rules to emails in drafts, sent, junk, trash, archive or other IMAP folders by selecting all messages and selection Message > Apply Rules.

The issue might have been that the spam emails are flagged as read on the server before they are loaded by Apple Mail and that Apple Mail doesn't apply rules to new emails if they are flagged as read already.