projects
/
org.ibex.mail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
227b2bb
)
fix horrible SMTP exception code bug
author
adam
<adam@megacz.com>
Thu, 5 Jul 2007 01:43:10 +0000
(
01:43
+0000)
committer
adam
<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
patch
|
blob
|
history
diff --git
a/src/org/ibex/mail/SMTP.java
b/src/org/ibex/mail/SMTP.java
index
f8bcf0b
..
ba4069f
100644
(file)
--- 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();
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;
}
private static boolean attempt(final Message m, final InetAddress mx) {
boolean accepted = false;