1 package net.suberic.pooka.filter; 2 import javax.mail.Message; 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 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 msg); 20 21 } 22