plugins/spamstats rename function, fix env.logfile