condition for email config