Possible Duplicate:
How to implement a white-list-based system in Gmail?
I only want to accpet email from two addresses, the rest I want to delete immediately, unseen.
I know how to make fileers and I can whitelist those two addresses.
If I make 3 filter, in this order;
1) from a@a.com move to inbox, never mark as spam
2) from b@b.com move to inbox, never mark as spam
3) from *@*.* delete immediately, never move to trash
can I be guaranteed that that will do what I want?
For instance, can I be sure that the filters are executed in that order? I don't want to lose any mail from those two addresses.
[Update] The accepted answer was almost correct, but instead of doesn't have <list of email addresses> (which did not work) I used from ~{<list of email addresses>}
The tilde ~ negates and the curly braces {} delimit the list. So, mail from anyone who is not in the approved list will be filtered.