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

SubjectStartsWith

public class SubjectStartsWith extends org.apache.mailet.GenericMatcher
version
1.0.0, 1/5/2000

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

        MimeMessage mm = mail.getMessage();
        String subject = mm.getSubject();
        if (subject != null && subject.startsWith(getCondition())) {
            return mail.getRecipients();
        }
        return null;