emailer: fixes plugin breakage