예제 #1
0
 public string[] Search(SearchCondition criteria, bool uid = true)
 {
     return Search(criteria.ToString(), uid);
 }
예제 #2
0
 public Lazy<MailMessage>[] SearchMessages(SearchCondition criteria, bool headersonly = false)
 {
     return Search(criteria, true)
       .Select(x => new Lazy<MailMessage>(() => GetMessage(x, headersonly)))
       .ToArray();
 }
예제 #3
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;
        }