예제 #1
0
    private static SearchCondition Join(string condition, SearchCondition left, params SearchCondition[] right) {
      condition = condition.ToUpper();

      if (left.Operator != condition) {
        left = new SearchCondition { Operator = condition, Conditions = new List<SearchCondition> { left } };
      }

      left.Conditions.AddRange(right);
      return left;
    }
예제 #2
0
 public virtual Lazy<MailMessage>[] SearchMessages(SearchCondition criteria, bool headersonly = false, bool setseen = false)
 {
     return Search(criteria, true)
             .Select(x => new Lazy<MailMessage>(() => GetMessage(x, headersonly, setseen)))
             .ToArray();
 }
예제 #3
0
 public virtual string[] Search(SearchCondition criteria, bool uid = true)
 {
     return Search(criteria.ToString(), uid);
 }
예제 #4
0
 public virtual Lazy <MailMessage>[] SearchMessages(SearchCondition criteria, bool headersonly = false, bool setseen = false)
 {
     return(Search(criteria, true)
            .Select(x => new Lazy <MailMessage>(() => GetMessage(x, headersonly, setseen)))
            .ToArray());
 }
예제 #5
0
 public virtual string[] Search(SearchCondition criteria, bool uid = true)
 {
     return(Search(criteria.ToString(), uid));
 }