Table of Contents

Class AttachmentDownloadLink

Namespace
MailFathom.Application.EmailContent.Attachments
Assembly
MailFathom.Application.dll

One minted capability to fetch one attachment, and the instant it stops being one.

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

The address is a bearer capability written into a URL, so it reaches whoever holds it and is copied wherever URLs are copied. What bounds it is that it names exactly one attachment of one email, expires within minutes, and resolves through the live store when it is redeemed — a link cannot outlive the deletion of the message it points at.

It is neither logged nor persisted. The address is not itself mail content, but it is an unauthenticated way to obtain some, which makes a log line carrying one worse than a log line carrying the file name it points at.

Constructors

AttachmentDownloadLink(Uri, DateTimeOffset)

One minted capability to fetch one attachment, and the instant it stops being one.

Properties

Address

The absolute address the attachment is fetched from, carrying the signed capability.

ExpiresAt

When the link stops being redeemable.