+++ /dev/null
-// Copyright 2000-2005 the Contributors, as shown in the revision logs.
-// Licensed under the Apache Public Source License 2.0 ("the License").
-// You may not use this file except in compliance with the License.
-
-package org.ibex.mail.target;
-import java.io.*;
-import org.ibex.js.*;
-import org.ibex.util.*;
-import org.ibex.mail.*;
-import org.ibex.mail.target.*;
-
-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" +(reason==null?"":(" because "+reason))+ ": " + m.summary());
- }
-}