Search in sources :

Example 6 with SubjectTerm

use of javax.mail.search.SubjectTerm in project jodd by oblac.

the class EmailFilter method subject.

/**
	 * Defines filter for SUBJECT field.
	 */
public EmailFilter subject(String subject) {
    SearchTerm subjectTerm = new SubjectTerm(subject);
    concat(subjectTerm);
    return this;
}
Also used : SearchTerm(javax.mail.search.SearchTerm) SubjectTerm(javax.mail.search.SubjectTerm)

Aggregations

SearchTerm (javax.mail.search.SearchTerm)6 SubjectTerm (javax.mail.search.SubjectTerm)6 OrTerm (javax.mail.search.OrTerm)3 Test (org.junit.Test)3 Message (javax.mail.Message)2 AndTerm (javax.mail.search.AndTerm)2 FromStringTerm (javax.mail.search.FromStringTerm)2 NotTerm (javax.mail.search.NotTerm)2 RecipientStringTerm (javax.mail.search.RecipientStringTerm)2 MessagingException (javax.mail.MessagingException)1 HeaderTerm (javax.mail.search.HeaderTerm)1 Ignore (org.junit.Ignore)1 SendmailMessage (org.opennms.netmgt.config.javamail.SendmailMessage)1 PollStatus (org.opennms.netmgt.poller.PollStatus)1