Update of /var/cvs/applications/email/src/org/mmbase/module/smtp
In directory james.mmbase.org:/tmp/cvs-serv13200

Modified Files:
        SMTPListener.java 
Log Message:
  MMB-1691


See also: 
http://cvs.mmbase.org/viewcvs/applications/email/src/org/mmbase/module/smtp
See also: http://www.mmbase.org/jira/browse/MMB-1691


Index: SMTPListener.java
===================================================================
RCS file: 
/var/cvs/applications/email/src/org/mmbase/module/smtp/SMTPListener.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- SMTPListener.java   3 Feb 2008 17:42:06 -0000       1.7
+++ SMTPListener.java   31 Jul 2008 13:23:03 -0000      1.8
@@ -19,7 +19,7 @@
  * Listener thread, that accepts connection on port 25 (default) and
  * delegates all work to its worker threads.
  * @author Johannes Verelst <[EMAIL PROTECTED]>
- * @version $Id: SMTPListener.java,v 1.7 2008/02/03 17:42:06 nklasens Exp $
+ * @version $Id: SMTPListener.java,v 1.8 2008/07/31 13:23:03 michiel Exp $
  */
 public class SMTPListener extends Thread {
 
@@ -74,9 +74,13 @@
             String portnr = properties.get("port");
             port = Integer.parseInt(portnr);
 
+            if (port == -1) {
+                log.info("port of smtp module is -1, therefore not starting a 
listener");
+            }
             host = properties.get("hostname");
             if (host == null) host = "localhost";
 
+
             try {
                 ssocket = new ServerSocket();
                 SocketAddress address = new InetSocketAddress(host, port);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to