chibenwa commented on code in PR #2268:
URL: https://github.com/apache/james-project/pull/2268#discussion_r1625469983
##########
protocols/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPConfiguration.java:
##########
@@ -36,6 +37,21 @@
*
*/
public interface SMTPConfiguration extends ProtocolConfiguration {
+ enum SenderVerificationMode {
+ STRICT,
+ RELAXED,
+ DISABLED;
+
+ // TODO unit tests
+ public static SenderVerificationMode parse(String value) {
+ return switch (value.toLowerCase(Locale.US).trim()) {
+ case "true", "strict" -> STRICT;
Review Comment:
Thanks for sharing.
It do not handle strict / disabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]