Skip to content
Permalink
Browse files
applied the fix/patch for JIRA POSTAGE-7
git-svn-id: https://svn.apache.org/repos/asf/james/postage/trunk@430081 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Bernd Fondermann committed Aug 9, 2006
1 parent b218d10 commit c8d014ac8b3bee0b8abff2d78b3e99e3e427e894
Showing 1 changed file with 6 additions and 2 deletions.
@@ -23,6 +23,8 @@
import org.apache.james.smtpserver.HeloCmdHandler;
import org.apache.james.smtpserver.EhloCmdHandler;
import org.apache.james.smtpserver.AuthCmdHandler;
import org.apache.james.smtpserver.NoopCmdHandler;
import org.apache.james.smtpserver.SendMailHandler;
import org.apache.james.smtpserver.VrfyCmdHandler;
import org.apache.james.smtpserver.ExpnCmdHandler;
import org.apache.james.smtpserver.MailCmdHandler;
@@ -43,7 +45,7 @@ public static Configuration getValuedConfiguration(String name, String value) {
return defaultConfiguration;
}

public static DefaultConfiguration createRemoteManagerHandlerChainConfiguration() {
public static DefaultConfiguration createHandlerChainConfiguration() {
DefaultConfiguration handlerChainConfig = new DefaultConfiguration("handlerchain");
handlerChainConfig.addChild(createCommandHandlerConfiguration("HELO", HeloCmdHandler.class));
handlerChainConfig.addChild(createCommandHandlerConfiguration("EHLO", EhloCmdHandler.class));
@@ -56,6 +58,8 @@ public static DefaultConfiguration createRemoteManagerHandlerChainConfiguration(
handlerChainConfig.addChild(createCommandHandlerConfiguration("RSET", RsetCmdHandler.class));
handlerChainConfig.addChild(createCommandHandlerConfiguration("HELP", HelpCmdHandler.class));
handlerChainConfig.addChild(createCommandHandlerConfiguration("QUIT", QuitCmdHandler.class));
handlerChainConfig.addChild(createCommandHandlerConfiguration("NOOP", NoopCmdHandler.class));
handlerChainConfig.addChild(createCommandHandlerConfiguration("Default SendMailHandler", SendMailHandler.class));
return handlerChainConfig;
}

@@ -107,7 +111,7 @@ public void init() {
handlerConfig.addChild(getValuedConfiguration("maxmessagesize", "" + 0));
handlerConfig.addChild(getValuedConfiguration("authRequired", m_authorizingMode));

handlerConfig.addChild(createRemoteManagerHandlerChainConfiguration());
handlerConfig.addChild(createHandlerChainConfiguration());
addChild(handlerConfig);
}

0 comments on commit c8d014a

Please sign in to comment.