Table of Contents

Class EmailAttachmentSummary

Namespace
MailFathom.Application.Emails.Summaries
Assembly
MailFathom.Application.dll

Summarizes what a message carries besides its body.

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

Remarks

What counts as an attachment is MailFathom's rule rather than a mail library's default, because the count is shown to a caller and filtered on. A signature part, an embedded image a body references, and the members of an alternative body are all things a mailbox owner does not call attachments, and each of them arrives with a Content-Disposition header that a disposition-driven rule would count.

Properties

AttachmentCount

Gets how many attachments the message carries.

Attachments

Gets the attachments, in the order the message's structure was walked.

CarriesUnverifiedSignature

Gets whether the message carries a signature part whose authenticity nothing has checked.

ContainsUnexpandedTnefPart

Gets whether the message carries a TNEF winmail.dat part that was recorded rather than expanded.

HasAttachments

Gets whether the message has attachments, which an inline-only or signature-only message does not.

InlineResourceCount

Gets how many parts are resources an HTML body embeds rather than files a person would open.

IsEncrypted

Gets whether the message body arrived inside a cryptographic envelope and is therefore unreadable here.

None

Gets the summary of a message that carries nothing besides its body.

TotalSizeOctets

Gets the decoded octets of every attachment together.

Methods

Create(IEnumerable<ExtractedEmailAttachment>, int, bool, bool, bool)

Builds the summary of one classified message.