Procmail for the Python + GMail generation; a quick and dirty proof of concept.