Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Added a SearchCondition method that maps to the SINCE IMAP search criter... #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions SearchCondition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ public static SearchCondition Before(DateTime date) {
return new SearchCondition { Field = Fields.Before, Value = date };
}
/// <summary>
/// Finds messages whose internal date (disregarding time and timezone) is later than the
/// specified date.
/// </summary>
/// <param name="date">The date to compare the message's internal date with.</param>
/// <returns>A SearchCondition object representing the "Since" search criterion.</returns>
public static SearchCondition Since(DateTime date) {
return new SearchCondition { Field = Fields.Since, Value = date };
}
/// <summary>
/// Finds messages that contain the specified string in the body of the message.
/// </summary>
/// <param name="text">String to search the message body for.</param>
Expand Down