Sieve filters

My email is all hosted at Tuffmail, which a friend recommended a few years ago, and which I now recommend to other friends in turn. Yes, you have to pay, but the spam filtering is wonderful, you can buy loads of storage, and it’s never down. One of the best things is being able to filter mail directly on the server — I never use my mail client’s rules, as all my email is in the correct folders already.

But setting up the filters on Tuffmail is a bit arcane. There’s no pretty interface, and you have to write the rules using the [Sieve filtering language](http://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)). It’s very powerful but there doesn’t seem to be any easy-to-read and comprehensive documentation. There are some examples but they’re scattered all over the place.

This won’t fix that problem, but here’s another scattered example, an anonymised version of my own Sieve filters, with duplicate clauses removed. Hopefully it’s useful to someone.