Class CitedAttachment
- Namespace
- MailFathom.Application.Discovery.Citations
- Assembly
- MailFathom.Application.dll
The file one resolved citation points at, described and carrying none of what it holds.
public sealed record CitedAttachment : IEquatable<CitedAttachment>
- Inheritance
-
CitedAttachment
- Implements
- Inherited Members
Remarks
No octet of the file is here, at any size and in any encoding. What a resolution answers is where the fact came from and what a reader would be opening, and the position it carries is the same one the attachment route resolves — so following the citation costs a request the reader chose to make rather than one this response made for them.
The position is the identity because it is the only stable one a message's parts have. A file name is text a sender chose, it is neither unique nor required, and it arrives here normalized to a bare name — with the flag saying whether that rewrote anything, because a reader shown a cited file is shown the same name the attachment strip shows and needs the same warning about it.
Constructors
- CitedAttachment(int, string?, bool, string, long)
The file one resolved citation points at, described and carrying none of what it holds.
Properties
- MediaType
What the part declares itself to be, which is what the sender wrote rather than a reading of the content.
- Position
The zero-based place the file holds in the order the message's structure is walked, which is what the download route is addressed with.
- SizeOctets
How many octets the file holds once its transfer encoding is decoded.
- WasFileNameNormalized
Whether normalization had to rewrite what the message wrote.