| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mailet.base.GenericMatcher
org.apache.james.transport.matchers.SenderHostIs
public class SenderHostIs
Checkes the sender's displayed domain name against a supplied list.
Sample configuration:
 <mailet match="SenderHostIs=domain.com" class="ToProcessor">
   <processor> spam </processor>
 </mailet>
 
| Constructor Summary | |
|---|---|
SenderHostIs()
 | 
|
| Method Summary | |
|---|---|
 void | 
init()
Initialize the mailet.  | 
 java.util.Collection | 
match(Mail mail)
Takes the message and checks the sender (if there is one) against the vector of host names.  | 
| Methods inherited from class org.apache.mailet.base.GenericMatcher | 
|---|
destroy, getCondition, getMailetContext, getMatcherConfig, getMatcherInfo, getMatcherName, init, log, log | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SenderHostIs()
| Method Detail | 
|---|
public void init()
init in class GenericMatcherpublic java.util.Collection match(Mail mail)
match in interface Matchermatch in class GenericMatchermail - the mail being processed
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||