A rules engine is our primary next focus at Marco. What you're describing is exactly the way email should work.
Pegasus Mail was very good when it owned the mail (pop3), and works ok with a competent IMAP server, but work switched to Exchange and it was very slow, and Pegasus didn't work well with a slow IMAP server. That was the start of my slide into inbox 40k :(