A good tutorial on Mail Filtering from Jef Poskanzer.

Now - how can I find a web hosting/email providor that supports IMAP and email filtering as throughly done as Jef describes?