Table of Contents

Class MailSearchPhraseFilters

Namespace
MailFathom.Application.Emails.Search.Phrasing
Assembly
MailFathom.Application.dll

The constraints a sentence was read as: what a search may return, rather than what it ranks by.

public sealed record MailSearchPhraseFilters : IEquatable<MailSearchPhraseFilters>
Inheritance
MailSearchPhraseFilters
Implements
Inherited Members

Remarks

Every member here is a filter the search screen already draws as an object somebody can see and take off, and that is the whole of why the set is this one. A reading that produced a constraint the screen has no chip for would be a constraint in force that nobody can see or remove, which is exactly the failure the screen was built to prevent.

The account and the folder are deliberately absent. Those two come from the mail somebody was looking at when they searched, which the screen copies onto the search already; a model choosing between mailboxes would be guessing at names it was never shown, and a wrong guess there hides mail rather than ranking it lower.

The three state members are bool rather than nullable, because a search asks for unread, flagged or attachment-carrying mail and never for the opposite: only read is not a search anybody types, and the screen has no chip for one.

Properties

Flagged

Gets whether only flagged mail may come back.

HasAttachments

Gets whether only mail carrying attachments may come back.

None

The reading that constrains nothing, which is what a sentence carrying no constraint produces.

ReceivedFrom

Gets the first calendar day the search reaches back to, or null for no start.

ReceivedTo

Gets the last calendar day the search reaches, inclusive, or null for no end.

RecipientAddress

Gets the address a recipient must carry, or null for any recipient.

SenderAddress

Gets the address the sender must carry, or null for any sender.

Unread

Gets whether only unread mail may come back.