From 8defbda8b6b5f48aeb4d74ee03d227ac16632d69 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 24 Jun 2004 01:27:24 +0000 Subject: [PATCH] temporarily remove esmtp support darcs-hash:20040624012724-5007d-196fec9767134bf69c5365e1da60323e3dc6a1ed.gz --- src/org/ibex/mail/protocol/SMTP.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/org/ibex/mail/protocol/SMTP.java b/src/org/ibex/mail/protocol/SMTP.java index e39eca0..27381cb 100644 --- a/src/org/ibex/mail/protocol/SMTP.java +++ b/src/org/ibex/mail/protocol/SMTP.java @@ -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"); -- 1.7.10.4