static { new Thread() { public void run() { Outgoing.runq(); } }.start(); }
+ public static void accept(Message m) throws IOException {
+ if (!m.envelopeTo.isLocal()) Outgoing.accept(m);
+ else Target.root.accept(m);
+ }
+
public static class SMTPException extends MailException {
int code;
String message;
Message m = null;
for(int i=0; i<to.size(); i++) {
m = Message.newMessage(new Fountain.StringFountain(body), from, (Address)to.elementAt(i));
- if (!m.envelopeTo.isLocal()) Outgoing.accept(m);
- else Target.root.accept(m);
+ accept(m);
}
if (m != null) Log.info(SMTP.class, "accepted message: " + m.summary());
conn.println("250 message accepted");