The Antispam app provides a mail filter that uses a wide range of heuristic tests to identify spam.