Implement short-circuit logic for emails locally in test env.