fix horrible SMTP exception code bug
authoradam <adam@megacz.com>
Thu, 5 Jul 2007 01:43:10 +0000 (01:43 +0000)
committeradam <adam@megacz.com>
Thu, 5 Jul 2007 01:43:10 +0000 (01:43 +0000)
darcs-hash:20070705014310-5007d-3e5c035aabb647549003e8233adba9eea08d3f98.gz

src/org/ibex/mail/SMTP.java

index f8bcf0b..ba4069f 100644 (file)
@@ -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;