X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fmail%2FTarget.java;h=952a46f611dd41b646a1d4119097aff9bc4635b9;hb=8f7212f973567b5caf9d8a4d7f9b5b400f53f44f;hp=346861c4bc3f6fb9a6736aeaafff1c45df180fea;hpb=c099a298576b1083c6be3259442900056032f0b1;p=org.ibex.mail.git diff --git a/src/org/ibex/mail/Target.java b/src/org/ibex/mail/Target.java index 346861c..952a46f 100644 --- a/src/org/ibex/mail/Target.java +++ b/src/org/ibex/mail/Target.java @@ -1,9 +1,14 @@ +// 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; import java.io.*; import org.ibex.js.*; +import org.ibex.mail.target.*; /** base class for mail message "destinations" */ -public class Target extends JS { +public interface Target { public static final Target root = Script.root(); - public void accept(Message m) throws IOException, MailException { throw new MailException("Target.accept() unimplemented"); } + public abstract void accept(Message m) throws IOException, MailException; }