Create Mail rule that combines "all" and "any"
I would like to create a rule for Apple Mail that combines "all" and "any".
I need to create a rule where I have a group of "any" criteria, "Message content contains X" OR "Message content contains Y" (and potentially some more ...) but I would like this to only apply to one of my email accounts, so the condition "Account is iCloud" must always be met. Somehow along those lines
Specifically, I would like to create a rule that is only valid for a specific account, and filters messages from either Sender A, or sender B, or C, or D, etc ...
So I need one "and" (all) conditions and a number of "or" (any) conditions.
The action I would then want to attach is to move the matching messages to a designated "On my Mac" mailbox/folder and deleting them from the respective IMAP folder.
I was even thinking if there was a way to combine two rules, like rule A has all the "any" conditions and then I make a new "all" rule B that filters messages that match rule A and are in account X. But I couldn't figure out a way to do it.
Any suggestions?