add a flag for global email on/off