FileDocCategorySizeDatePackage
HasHeader.javaAPI DocApache James 2.3.11922Fri Jan 12 12:56:32 GMT 2007org.apache.james.transport.matchers

HasHeader

public class HasHeader extends org.apache.mailet.GenericMatcher
use: This matcher simply checks to see if the header named is present. If complements the AddHeader mailet. TODO: support lists of headers and values, e.g, match="{
[=value]}+" [will require a complete rewrite from the current trivial one-liner]

Fields Summary
Constructors Summary
Methods Summary
public java.util.Collectionmatch(org.apache.mailet.Mail mail)

        return (mail.getMessage().getHeader(getCondition(), null) != null) ? mail.getRecipients() : null;