Class BrowseSearchRequest
- Namespace
- MailFathom.Application.Emails.BrowseSearch
- Assembly
- MailFathom.Application.dll
What a screen asks for when somebody searches their mail.
public sealed record BrowseSearchRequest : IEquatable<BrowseSearchRequest>
- Inheritance
-
BrowseSearchRequest
- Implements
- Inherited Members
Remarks
This is the unvalidated contract, exactly as SearchEmailsRequest is for the tool search: nothing here has been bounded, normalized, or checked against the accounts the caller's user owns, and MailSearchBrowser is what does that.
Every field beside QueryText is a constraint rather than a hint. A person who filtered to one sender and to last year has said which mail may be returned, not which mail they would prefer; the query decides the order of what is left and can never put back what a filter excluded.
Nothing here selects how the search is ranked. Whether an instance ranks by meaning as well as by words is the deployment's decision and the page reports what happened — a request able to ask for the lexical ranking of a hybrid instance would be asking for worse results with no way to know it.
Properties
- Accounts
Gets the accounts to search, or empty for every account the caller's user owns.
- Folders
Gets the folders to search, or empty for every folder of those accounts.
- HasAttachments
Gets whether attachments are required, or null for either.
- IncludeJunkMail
Gets whether the account's junk folder is searched too, which it is not unless the screen asks.
- IsRemotelyFlagged
Gets the remote
\Flaggedstate to require, or null for either.
- IsRemotelySeen
Gets the remote
\Seenstate to require, or null for either.
- QueryText
Gets the text to search for.
- ReceivedBefore
Gets the exclusive end of the received range, or null for no end.
- ReceivedOnOrAfter
Gets the inclusive start of the received range, or null for no start.
- RecipientAddress
Gets the address a
ToorCcrecipient must carry, or null for any recipient.
- SenderAddress
Gets the address the sender must carry, in any case, or null for any sender.