diff --git a/java/com/google/gerrit/server/mail/send/OutgoingEmailValidator.java b/java/com/google/gerrit/server/mail/send/OutgoingEmailValidator.java index bc6c89ebb6..e28a77de34 100644 --- a/java/com/google/gerrit/server/mail/send/OutgoingEmailValidator.java +++ b/java/com/google/gerrit/server/mail/send/OutgoingEmailValidator.java @@ -24,6 +24,13 @@ import org.apache.commons.validator.routines.DomainValidator; import org.apache.commons.validator.routines.EmailValidator; import org.eclipse.jgit.lib.Config; +/** + * Validator that checks if an email address is valid and allowed for receiving notification emails. + * + *
An email address is valid if it is syntactically correct. + * + *
An email address is allowed if its top level domain is allowed by Gerrit's configuration. + */ @Singleton public class OutgoingEmailValidator { private static final FluentLogger logger = FluentLogger.forEnclosingClass();