About every 6 months, I update my Gmail filters to accommodate all the new kinds of spam out there. It's actually quite tedious to put filters on everything and to try to devise new filters.
Gmail uses bayesian filters to guess if an e-mail is spam. Is it possible to access Gmail from the command line and try to automate the filtering? or even the clustering?