You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by "quantranhong1999 (via GitHub)" <gi...@apache.org> on 2023/04/20 04:26:12 UTC

[GitHub] [james-project] quantranhong1999 commented on a diff in pull request #1501: JAMES-4865 Add FutureRelease Extension

quantranhong1999 commented on code in PR #1501:
URL: https://github.com/apache/james-project/pull/1501#discussion_r1172065387


##########
server/apps/distributed-app/docs/modules/ROOT/pages/configure/smtp-hooks.adoc:
##########
@@ -301,4 +301,21 @@ Example configuration:
     <!-- ... -->
     <handler class="org.apache.james.smtpserver.fastfail.ValidSenderDomainHandler"/>
 </handlerchain>
+....
+
+== FUTURE-RELEASE hooks
+
+The Distributed server has optional support for DSN (link:https://www.rfc-editor.org/rfc/rfc4865.html[RFC-4865])

Review Comment:
   ```suggestion
   The Distributed server has optional support for FUTURERELEASE (link:https://www.rfc-editor.org/rfc/rfc4865.html[RFC-4865])
   ```
   



##########
server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/futurerelease/FutureReleaseMailParameterHook.java:
##########
@@ -52,9 +61,9 @@ public HookResult doMailParameter(SMTPSession session, String paramName, String
         if (session.getUsername() == null) {
             LOGGER.debug("Needs to be logged in in order to use future release extension");
             return HookResult.builder()
-                .hookReturnCode(HookReturnCode.deny())
-                .smtpDescription("Needs to be logged in in order to use future release extension")
-                .build();
+                    .hookReturnCode(HookReturnCode.deny())
+                    .smtpDescription("Needs to be logged in in order to use future release extension")
+                    .build();

Review Comment:
   IMO do not change the old indent (check your indent settings).
   
   1 Tab (4 spaces) is good enough, not 2 Tab.



-- 
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: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org