From 8b22f8f41cd85657ee7042ac3b7146ee327a309d Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 5 Jul 2007 01:43:10 +0000 Subject: [PATCH] fix horrible SMTP exception code bug darcs-hash:20070705014310-5007d-3e5c035aabb647549003e8233adba9eea08d3f98.gz --- src/org/ibex/mail/SMTP.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/ibex/mail/SMTP.java b/src/org/ibex/mail/SMTP.java index f8bcf0b..ba4069f 100644 --- a/src/org/ibex/mail/SMTP.java +++ b/src/org/ibex/mail/SMTP.java @@ -327,7 +327,8 @@ public class SMTP { private static void check(String s, Connection conn) { if (s==null) return; while (s.length() > 3 && s.charAt(3) == '-') s = conn.readln(); - if (s.startsWith("4")||s.startsWith("5")) throw new SMTPException(s); + //if (s.startsWith("4")||s.startsWith("5")) throw new SMTPException(s); + if (!s.startsWith("2")&&!s.startsWith("3")) throw new SMTPException(s); } private static boolean attempt(final Message m, final InetAddress mx) { boolean accepted = false; -- 1.7.10.4