fixes for mail system

API update for another PR in Forestry https://github.com/ForestryMC/ForestryMC/pull/89