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

RecipientIs

public class RecipientIs extends org.apache.mailet.GenericRecipientMatcher
version
1.0.0, 24/04/1999

Fields Summary
private Collection
recipients
Constructors Summary
Methods Summary
public voidinit()

        StringTokenizer st = new StringTokenizer(getCondition(), ", \t", false);
        recipients = new java.util.HashSet();
        while (st.hasMoreTokens()) {
            recipients.add(new MailAddress(st.nextToken()));
        }
    
public booleanmatchRecipient(org.apache.mailet.MailAddress recipient)

        return recipients.contains(recipient);