You could do this with procmail, a rule like:
:0
* ^From:
somebody@somewhere.com
.Inbox/
And trash anything else with a procmail trashing everything else:
:0
* ^From: *.*
/dev/null
Take note, I've not tested this, but from my understanding this should work. A few test emails should help to see if it actually does
As procmail processes recipes in order, if you have these in this order, it *should* work.
You might get spam if the person is someone like:
root@yourdomain.com
that you allow through, just an FYI. I don't know of an easy way to get around that, other than to use spam checkers and then filter the spam through first, then apply these last procmail recipes. See:
http://www.ii.com/internet/robots/procmail/qs/
For more info on using procmail recipes.
One last thought:
~/.procmailrc (and possibly ~/.procmail/) is where these recipes go, this will only affect the user who has them in their home directory.
Good luck!
Cool