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

SenderIs

public class SenderIs extends org.apache.mailet.GenericMatcher
version
1.0.0, 24/04/1999

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

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

        if (senders.contains(mail.getSender())) {
            return mail.getRecipients();
        } else {
            return null;
        }