Please put this class in mail-common.js instead.