Table of Contents

Class EmailAttachmentMatch

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

Why one of a message's attachments is part of a search result, and where inside the file that is.

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

Remarks

A match of its own rather than another snippet on the message, because the two answer different questions. A snippet is cut from what somebody typed into the message and needs no coordinate beyond the message itself; this is cut from a file, and a reader who cannot be told which file and which page of it has been shown words they cannot go and check. Folding one into the other would also make a message quote text its body never carried.

Kind is what separates the two things an attachment can contribute. A document's own words were written by whoever sent the file and compete as an ordinary match; a description was composed by a model out of a picture, and a result carrying one is in the list only because nothing anybody wrote was near the query.

Extracts is bounded mail content and inherits the classification of the message it hangs on — twice over where the kind is a description, that text being a machine's account of mail content. Nothing here is written to a log, a metric, a trace, or an error message, and no member of it is a whole attachment: what a match publishes is what a snippet publishes, cut to the same deployment bounds.

Constructors

EmailAttachmentMatch(int, string?, string, AttachmentTextKind, AttachmentTextSegment?, IReadOnlyList<string>)

Why one of a message's attachments is part of a search result, and where inside the file that is.

Properties

AttachmentPosition

The zero-based walk position of the attachment, which is the coordinate the download route is addressed with.

DeclaredMediaType

What the part declared itself to be, which is the sender's claim rather than a reading of the octets.

Extracts

The bounded extracts themselves, in the order the attachment's text carries them.

FileName

The normalized file name, or null where the part carried no usable name.

Kind

Whether the words are the file's own or a model's account of a picture.

Segment

The page, slide, or sheet the extract was read from, or null where the reading recorded no boundaries.