Class SearchTermHelpers
java.lang.Object
org.jenkinsci.plugins.pollmailboxtrigger.mail.utils.SearchTermHelpers
A slightly nicer way of building search terms.
- Author:
- Nick Grealy
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.mail.search.SearchTermstatic javax.mail.search.SearchTermand(javax.mail.search.SearchTerm... terms) static javax.mail.search.SearchTermflag(javax.mail.Flags.Flag flag) static javax.mail.search.SearchTermstatic javax.mail.search.SearchTermnot(javax.mail.search.SearchTerm term) static javax.mail.search.SearchTermreceivedSince(Date date) static DaterelativeDate(int unit, int amount) static javax.mail.search.SearchTerm
-
Method Details
-
and
public static javax.mail.search.SearchTerm and(javax.mail.search.SearchTerm... terms) -
and
-
not
public static javax.mail.search.SearchTerm not(javax.mail.search.SearchTerm term) -
subject
-
from
-
receivedSince
-
flag
public static javax.mail.search.SearchTerm flag(javax.mail.Flags.Flag flag) -
relativeDate
- Parameters:
unit- - e.g. Calendar.HOURSamount- - negative for the past!- Returns:
- The past date.
-