Constructor AttachmentDownloadLink
- Namespace
- MailFathom.Application.EmailContent.Attachments
- Assembly
- MailFathom.Application.dll
AttachmentDownloadLink(Uri, DateTimeOffset)
One minted capability to fetch one attachment, and the instant it stops being one.
public AttachmentDownloadLink(Uri Address, DateTimeOffset ExpiresAt)
Parameters
AddressUriThe absolute address the attachment is fetched from, carrying the signed capability.
ExpiresAtDateTimeOffsetWhen the link stops being redeemable.
Remarks
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.