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:
80d1596
)
accept->enqueue
author
adam
<adam@megacz.com>
Sat, 17 Mar 2007 09:00:56 +0000
(09:00 +0000)
committer
adam
<adam@megacz.com>
Sat, 17 Mar 2007 09:00:56 +0000
(09:00 +0000)
darcs-hash:
20070317090056
-5007d-
93fee59ad2f945ac770e13c28b0509b5191e7488
.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
5a73554
..
409818c
100644
(file)
--- a/
src/org/ibex/mail/SMTP.java
+++ b/
src/org/ibex/mail/SMTP.java
@@
-27,6
+27,9
@@
import javax.naming.directory.*;
// FIXME: loop prevention
// FIXME: probably need some throttling on outbound mail
// FIXME: loop prevention
// FIXME: probably need some throttling on outbound mail
+// FEATURE: public static boolean validate(Address a)
+// FEATURE: rate-limiting
+
// FEATURE: infer messageid, date, if not present (?)
// FEATURE: exponential backoff on retry time?
// FEATURE: RFC2822, section 4.5.1: special "postmaster" address
// FEATURE: infer messageid, date, if not present (?)
// FEATURE: exponential backoff on retry time?
// FEATURE: RFC2822, section 4.5.1: special "postmaster" address
@@
-58,8
+61,8
@@
public class SMTP {
new Outgoing().start();
}
new Outgoing().start();
}
- public static void accept(Message m) throws IOException {
- if (!m.envelopeTo.isLocal()) Outgoing.accept(m);
+ public static void enqueue(Message m) throws IOException {
+ if (!m.envelopeTo.isLocal()) Outgoing.enqueue(m);
else Target.root.accept(m);
}
else Target.root.accept(m);
}