I want to create a simple rule that moves incoming or sent message to a folder if TO: CC: or FROM: contains domain.com

The problem seems to be, if someone is already in my address book and I type the name, the actual name like "John Doe" is displayed and not the email address and the rule does not get applied.

The only way I can think of to get this working is to change the display name for every contact to an email address. Is there another way?

Thank you