Table of Contents

Class EmailSearchMatch

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

One email a search matched, with why it ranked where it did and what matched.

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

Remarks

The summary is the same bounded projection a listing returns, so a caller can act on a result — read the message, filter its folder, recognize its sender — without a second query. What search adds is the rank and the extracts, and none of it is anything the mailbox holds: all of it is computed per query and means nothing outside the one that produced it.

The snippets are mail content and inherit the classification of the message they were cut from. They are bounded in number and length by EmailSearchSnippetBounds, and there may be none of them: a message whose body yielded no text — encrypted mail, or mail whose content lives entirely in an attachment — matched on its subject or its participants, which the summary already publishes whole.

What an attachment contributed stays out of those snippets and travels in AttachmentMatches instead. A snippet is an extract of what the message says, so quoting a file into one would report words the body never carried and leave a reader unable to say which file they came from.

Constructors

EmailSearchMatch(EmailSummary, float, IReadOnlyList<string>)

One email a search matched, with why it ranked where it did and what matched.

Properties

AttachmentMatches

Gets what the message's attachments contributed, each naming its file and the place inside it.

IsDepictedMatch

Gets whether a model's description of an attached picture is the whole of this message's claim on the query.

Position

Gets where the email sits in the timeline order, which is what breaks a tie between equal ranks.

RelevanceRank

What the ranking scored this email against this query, higher being more relevant.

Snippets

The highlighted extracts of the body around what matched, in the order the body carries them.

Summary

The email as a listing shows it.