use of javax.mail.search.FlagTerm in project jodd by oblac.
the class EmailFilter method flags.
/**
* Defines filter for many flags at once.
*/
public EmailFilter flags(Flags flags, boolean value) {
SearchTerm flagTerm = new FlagTerm(flags, value);
concat(flagTerm);
return this;
}
use of javax.mail.search.FlagTerm in project camel by apache.
the class SearchTermBuilder method unseen.
public SearchTermBuilder unseen(Op op) {
SearchTerm st = new FlagTerm(new Flags(Flags.Flag.SEEN), false);
addTerm(op, st);
return this;
}
use of javax.mail.search.FlagTerm in project camel by apache.
the class SearchTermBuilder method flag.
public SearchTermBuilder flag(Op op, Flags flags, boolean set) {
SearchTerm st = new FlagTerm(flags, set);
addTerm(op, st);
return this;
}
Aggregations