You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by hb...@apache.org on 2001/04/23 03:14:37 UTC
cvs commit: jakarta-james/src/org/apache/james/smtpserver SMTPServer.java
hbedi 01/04/22 18:14:37
Modified: src/org/apache/james/smtpserver SMTPServer.java
Log:
There could be more than one instance of a protocol server in
James. Changed the startup message to show connection information.
Revision Changes Path
1.22 +5 -2 jakarta-james/src/org/apache/james/smtpserver/SMTPServer.java
Index: SMTPServer.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/org/apache/james/smtpserver/SMTPServer.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- SMTPServer.java 2001/04/21 05:43:46 1.21
+++ SMTPServer.java 2001/04/23 01:14:37 1.22
@@ -48,14 +48,17 @@
throw new ConfigurationException( "Malformed bind parameter", unhe );
}
- super.configure( configuration.getChild( "smtphandler" ) );
+ final String useTLS = configuration.getChild("useTLS").getValue( "" );
+ if( useTLS.equals( "TRUE" ) ) m_serverSocketType = "ssl";
+
+ super.configure( configuration.getChild( "smtphandler" ) );
}
public void init() throws Exception {
getLogger().info("SMTPServer init...");
super.init();
getLogger().info("SMTPServer ...init end");
- System.out.println("Started SMTP Server");
+ System.out.println("Started SMTP Server "+m_connectionName);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org