Table of Contents

Class EmailContentHeaders

Namespace
MailFathom.Application.EmailContent.Rendering
Assembly
MailFathom.Application.dll

Carries the normalized headers one email displays above its body.

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

Remarks

These are read from the stored raw MIME during the parse that produces the body, rather than from the columns the mailbox listing is served out of. The row keeps only the comparison forms a filter needs, so display names, the Bcc a message may carry for its own recipient, and the Sender header exist nowhere else — a reader shown the listing's copy would be shown a narrower message than the one that arrived.

Every value here is mail content and personal data. Nothing in this record may be written to a log; only the counts and the fact that a header was absent are safe to report.

Constructors

EmailContentHeaders(string?, DateTimeOffset?, DateTimeOffset?, IReadOnlyList<EmailParticipant>, EmailThreadReferences)

Carries the normalized headers one email displays above its body.

Properties

Participants

Every usable address the message wrote, each paired with the header it appeared in.

ReceivedAt

When the last receiving hop recorded the message in UTC, or null when no Received header carried a usable date.

SentAt

The Date header in UTC, or null when the message carried none or wrote an unparseable one.

Subject

The decoded subject, or null when the message carried none.

ThreadReferences

The identifiers that place the message in a conversation.