public class Drop extends JS.Obj implements Target {
public static final Drop instance = new Drop();
+ public final String reason;
+ public Drop() { this(null); }
+ public Drop(String reason) { this.reason = reason; }
public void accept(Message m) throws IOException, MailException {
- Log.warn(this, "dropping message " + m.summary());
+ Log.warn(this, "dropping" +(reason==null?"":(" because "+reason))+ ": " + m.summary());
}
}