temporarily remove esmtp support
authoradam <adam@megacz.com>
Thu, 24 Jun 2004 01:27:24 +0000 (01:27 +0000)
committeradam <adam@megacz.com>
Thu, 24 Jun 2004 01:27:24 +0000 (01:27 +0000)
darcs-hash:20040624012724-5007d-196fec9767134bf69c5365e1da60323e3dc6a1ed.gz

src/org/ibex/mail/protocol/SMTP.java

index e39eca0..27381cb 100644 (file)
@@ -20,15 +20,16 @@ public class SMTP {
 
     public static class Server extends Connection {
         public Server(Socket conn, String vhost) throws IOException { super(conn, vhost); }
-        public boolean handleRequest() throws IOException, MailException {
-            conn.setSoTimeout(5 * 60 * 1000);
-            println("220 " + vhost + " ESMTP " + this.getClass().getName());
+        public Server(com.caucho.server.connection.Connection conn) throws IOException { super(new SMTP(), conn); }
+        public boolean handle_() throws IOException, MailException {
+            setSoTimeout(5 * 60 * 1000);
+            println("220 " + vhost + " SMTP " + this.getClass().getName());
             Address from = null;
             Vector to = new Vector();
             for(String command = readln(); ; command = readln()) {
                 String c = command.toUpperCase();
                 if (c.startsWith("HELO"))        { println("250 HELO " + vhost);                  from = null; to = new Vector();
-                } else if (c.startsWith("EHLO")) { println("250-\r\n250-SIZE\r\n250 PIPELINING"); from = null; to = new Vector();
+                } else if (c.startsWith("EHLO")) { println("250");                                from = null; to = new Vector();
                 } else if (c.startsWith("RSET")) { println("250 reset ok");                       from = null; to = new Vector();
                 } else if (c.startsWith("HELP")) { println("214 you are beyond help.  see a trained professional.");
                 } else if (c.startsWith("VRFY")) { println("252 We don't VRFY; proceed anyway");