01: package dalma.endpoints.james;
02:
03: import org.apache.mailet.GenericMailet;
04: import org.apache.mailet.Mail;
05: import org.apache.mailet.Mailet;
06:
07: import javax.mail.MessagingException;
08:
09: /**
10: * {@link Mailet} that passes the incoming e-mails to
11: * the dalma engine.
12: *
13: * @author Kohsuke Kawaguchi
14: */
15: public abstract class DalmaMailet extends GenericMailet {
16:
17: public abstract JamesListener getListener();
18:
19: public void service(Mail mail) throws MessagingException {
20: getListener().handle(mail);
21: }
22: }
|