added Later target
authoradam <adam@megacz.com>
Fri, 18 Mar 2005 09:10:38 +0000 (09:10 +0000)
committeradam <adam@megacz.com>
Fri, 18 Mar 2005 09:10:38 +0000 (09:10 +0000)
darcs-hash:20050318091038-5007d-13e7212ed16333f22d4b153ce312df692bc07a4d.gz

src/org/ibex/mail/target/Later.java [new file with mode: 0644]

diff --git a/src/org/ibex/mail/target/Later.java b/src/org/ibex/mail/target/Later.java
new file mode 100644 (file)
index 0000000..e41dc49
--- /dev/null
@@ -0,0 +1,19 @@
+// 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 Later extends Target {
+    public static final Later instance = new Later();
+    public static class LaterException extends RuntimeException { }
+    public void accept(Message m) throws IOException, MailException {
+        Log.warn(this, "delaying message " + m.summary());
+        throw new LaterException();
+    }
+}