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