else { conn.println("551 sorry, " + addr + " is not on this machine"); }
to.addElement(addr);
} else if (c.startsWith("DATA")) {
- if (from == null) { conn.println("503 MAIL FROM command must precede DATA"); continue; }
+ //if (from == null) { conn.println("503 MAIL FROM command must precede DATA"); continue; }
if (to == null) { conn.println("503 RCPT TO command must precede DATA"); continue; }
conn.println("354 Enter message, ending with \".\" on a line by itself");
conn.flush();
return null;
}
if (name.equals("mail.forward") || name.equals("forward")) {
- Message m = (Message)a;
- Message m2 = Message.newMessage(m, m.envelopeFrom, new Address(JSU.toString(a)));
+ Message m2 = Message.newMessage(Script.this.m, Script.this.m.envelopeFrom, new Address(JSU.toString(a)));
org.ibex.mail.protocol.SMTP.Outgoing.attempt(m2);
return Drop.instance;
}