Like in Gmail, where you can play around with search until you get the results you want and then convert it to a rule.