Search in sources :

Example 1 with FlagTerm

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;
}
Also used : FlagTerm(javax.mail.search.FlagTerm) SearchTerm(javax.mail.search.SearchTerm)

Example 2 with FlagTerm

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;
}
Also used : FlagTerm(javax.mail.search.FlagTerm) Flags(javax.mail.Flags) SearchTerm(javax.mail.search.SearchTerm)

Example 3 with FlagTerm

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;
}
Also used : FlagTerm(javax.mail.search.FlagTerm) SearchTerm(javax.mail.search.SearchTerm)

Aggregations

FlagTerm (javax.mail.search.FlagTerm)3 SearchTerm (javax.mail.search.SearchTerm)3 Flags (javax.mail.Flags)1