add primary mail functionality