plugins/spamstats: various enhancements