backported mailobjects export to 1.4