From: adam Date: Fri, 18 Mar 2005 09:10:38 +0000 (+0000) Subject: added Later target X-Git-Url: http://git.megacz.com/?p=org.ibex.mail.git;a=commitdiff_plain;h=26e61a04ef2735bafc0eb2a3bef11db54443912d added Later target darcs-hash:20050318091038-5007d-13e7212ed16333f22d4b153ce312df692bc07a4d.gz --- diff --git a/src/org/ibex/mail/target/Later.java b/src/org/ibex/mail/target/Later.java new file mode 100644 index 0000000..e41dc49 --- /dev/null +++ b/src/org/ibex/mail/target/Later.java @@ -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(); + } +}