KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > filter > SpamFilter


1 package net.suberic.pooka.filter;
2 import javax.mail.Message JavaDoc;
3
4 /**
5  * A Spam filter interace.
6  */

7 public interface SpamFilter {
8
9   /**
10    * Idenfies whether or not the given message is spam. If so, marks the
11    * message as such and returns true.
12    */

13   public boolean isSpam(Message JavaDoc msg);
14
15   /**
16    * Mark this message as not being spam. Called to correct a message that
17    * has been misidentified as spam.
18    */

19   public void isNotSpam(Message JavaDoc msg);
20
21 }
22
Popular Tags