From: adam Date: Thu, 5 Jul 2007 01:43:10 +0000 (+0000) Subject: fix horrible SMTP exception code bug X-Git-Url: http://git.megacz.com/?p=org.ibex.mail.git;a=commitdiff_plain;h=8b22f8f41cd85657ee7042ac3b7146ee327a309d fix horrible SMTP exception code bug darcs-hash:20070705014310-5007d-3e5c035aabb647549003e8233adba9eea08d3f98.gz --- 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;