Class HasHabeasWarrantMark

  extended by org.apache.mailet.base.GenericMatcher
      extended by org.apache.james.mailet.standard.matchers.HasHabeasWarrantMark
All Implemented Interfaces:
Matcher, MatcherConfig

public class HasHabeasWarrantMark
extends GenericMatcher

This matcher tests for the Hebeas Warrant Mark. For details see:

Usage: Place this matcher

 <mailet match="HasHabeasWarrantMark" class="ToProcessor">
     <processor> transport </processor>

in the root processs before the DNSRBL block lists (the InSpammerBlacklist matcher).

Because the Habeas Warrant Mark is copyright material, I have asked for and received the following explicit statement from Habeas:

 From: Lindsey Pettit []
 Sent: Sunday, September 29, 2002 5:51
 To: Noel J. Bergman
 Subject: RE: Habeas and Apache James

 Dear Noel,
 > I guess that since your Warrant Mark is copyright, I should ask for
 > something from you to explicitly authorize that Hebeas will permit
 > this code to be included and distributed as part of Apache James
 > under the Apache Software License.  As we have established, the use
 > of the Habeas Warrant Mark for filtering is not restricted, but I
 > would like something to confirm that, so that Apache will be happy.

 I can hereby confirm to you that there is no license necessary in 
 order to use the Habeas mark for filtering.  That said, however, we 
 do insist that it not ever be used as a basis for rejecting email which 
 bears the Habeas mark.

Field Summary
static String[][] warrantMark
Constructor Summary
Method Summary
 String getMatcherInfo()
          Returns information about the matcher, such as author, version, and copyright.
 Collection<MailAddress> match(Mail mail)
          Called by the matcher container to allow the matcher to process a message.
Methods inherited from class org.apache.mailet.base.GenericMatcher
destroy, getCondition, getMailetContext, getMatcherConfig, getMatcherName, init, init, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final String[][] warrantMark
Constructor Detail


public HasHabeasWarrantMark()
Method Detail


public Collection<MailAddress> match(Mail mail)
                              throws javax.mail.MessagingException
Description copied from class: GenericMatcher

Called by the matcher container to allow the matcher to process a message.

This method is declared abstract so subclasses must override it.

Specified by:
match in interface Matcher
Specified by:
match in class GenericMatcher
mail - - the Mail object that contains the MimeMessage and routing information
java.util.Collection - the recipients that the mailet container should have the mailet affect.
javax.mail.MessagingException - if any error occurs which prevents the Mail matching from completing successfully


public String getMatcherInfo()
Description copied from class: GenericMatcher
Returns information about the matcher, such as author, version, and copyright. By default, this method returns an empty string. Override this method to have it return a meaningful value.

Specified by:
getMatcherInfo in interface Matcher
getMatcherInfo in class GenericMatcher
String information about this matcher, by default an empty string

Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.