Table of Contents

Class MailDraftAttachment

Namespace
MailFathom.Domain.Delivery.Drafts
Assembly
MailFathom.Domain.dll

Describes one file staged against a draft, without the octets it is made of.

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

Remarks

A file is uploaded once and composed into every later revision of the draft, which is what keeps editing a message with a large attachment from re-sending that attachment on each keystroke. So it is held beside the draft rather than inside the composed message, and the message the drafts folder shows is the composition of the fields and these.

The description travels apart from the content for the reason every other mail description does: listing a draft says what is attached to it, and a listing that carried the octets would load every file of every draft to answer what they are called.

MediaType is the author's statement about their own file rather than anything derived from it, on the same terms as the composed attachment: what a wrong one costs is a recipient's client opening the file with the wrong application, which is the author's mistake to make and to correct.

Constructors

MailDraftAttachment(MailDraftAttachmentId, string, string, long, DateTimeOffset)

Describes one file staged against a draft, without the octets it is made of.

Fields

MaximumFileNameLength

The greatest length a staged file's name may carry.

MaximumMediaTypeLength

The greatest length a staged file's declared media type may carry.

Properties

ByteLength

How many octets were stored for it.

FileName

The name the recipient will see the file under.

Id

What a removal names the file by.

MediaType

The media type the author declared the file as.

StagedAt

When the upload was taken in, which is the order a composition attaches the files in.