@Test public void testOR() throws Exception { expectsGetSelectedMailbox(); check(SearchKey.buildOr(SearchKey.buildOn(DAY_MONTH_YEAR), SearchKey .buildOld()), SearchQuery.or(SearchQuery.internalDateOn(getDate(DAY, MONTH, YEAR), DateResolution.Day), SearchQuery.flagIsUnSet(Flag.RECENT))); }
private Criterion or(List<SearchKey> keys, ImapSession session) throws MessageRangeException { final SearchKey keyOne = keys.get(0); final SearchKey keyTwo = keys.get(1); final Criterion criterionOne = toCriterion(keyOne, session); final Criterion criterionTwo = toCriterion(keyTwo, session); return SearchQuery.or(criterionOne, criterionTwo); }
SearchProcessor extends AbstractMailboxProcessor<SearchRequest> implements CapabilityImplementingProcessor { private Criterion or(List<SearchKey> keys, ImapSession session) throws MessageRangeException { final SearchKey keyOne = keys.get(0); final SearchKey keyTwo = keys.get(1); final Criterion criterionOne = toCriterion(keyOne, session); final Criterion criterionTwo = toCriterion(keyTwo, session); return SearchQuery.or(criterionOne, criterionTwo); } }
SearchProcessor extends AbstractMailboxProcessor<SearchRequest> implements CapabilityImplementingProcessor { private Criterion or(List<SearchKey> keys, ImapSession session) throws MessageRangeException { final SearchKey keyOne = keys.get(0); final SearchKey keyTwo = keys.get(1); final Criterion criterionOne = toCriterion(keyOne, session); final Criterion criterionTwo = toCriterion(keyTwo, session); return SearchQuery.or(criterionOne, criterionTwo); } SearchProcessor(ImapProcessor next, MailboxManager mailboxManager, StatusResponseFactory factory,
            MetricFactory metricFactory); }
SearchProcessor extends AbstractMailboxProcessor<SearchRequest> implements CapabilityImplementingProcessor { private Criterion or(List<SearchKey> keys, ImapSession session) throws MessageRangeException { final SearchKey keyOne = keys.get(0); final SearchKey keyTwo = keys.get(1); final Criterion criterionOne = toCriterion(keyOne, session); final Criterion criterionTwo = toCriterion(keyTwo, session); return SearchQuery.or(criterionOne, criterionTwo); } SearchProcessor(ImapProcessor next, MailboxManager mailboxManager, StatusResponseFactory factory,
            MetricFactory metricFactory); @Override List<Capability> getImplementedCapabilities(ImapSession session); }
SearchProcessor extends AbstractMailboxProcessor<SearchRequest> implements CapabilityImplementingProcessor { private Criterion or(List<SearchKey> keys, ImapSession session) throws MessageRangeException { final SearchKey keyOne = keys.get(0); final SearchKey keyTwo = keys.get(1); final Criterion criterionOne = toCriterion(keyOne, session); final Criterion criterionTwo = toCriterion(keyTwo, session); return SearchQuery.or(criterionOne, criterionTwo); } SearchProcessor(ImapProcessor next, MailboxManager mailboxManager, StatusResponseFactory factory,
            MetricFactory metricFactory); @Override List<Capability> getImplementedCapabilities(ImapSession session);  }