Email classification in perl, integrated with Amavisd