From 3fbd88807a7ad4db1b28e842f5c91260f64a68a3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 11 Apr 2015 17:28:18 -0400 Subject: [PATCH] Added a SearchCondition method that maps to the SINCE IMAP search criteria Fixes issue #101 --- SearchCondition.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SearchCondition.cs b/SearchCondition.cs index c7fc402..57b3bb5 100644 --- a/SearchCondition.cs +++ b/SearchCondition.cs @@ -46,6 +46,15 @@ public static SearchCondition Before(DateTime date) { return new SearchCondition { Field = Fields.Before, Value = date }; } /// + /// Finds messages whose internal date (disregarding time and timezone) is later than the + /// specified date. + /// + /// The date to compare the message's internal date with. + /// A SearchCondition object representing the "Since" search criterion. + public static SearchCondition Since(DateTime date) { + return new SearchCondition { Field = Fields.Since, Value = date }; + } + /// /// Finds messages that contain the specified string in the body of the message. /// /// String to search the message body for.