Class AttachmentDownloadTicket
- Namespace
- MailFathom.Application.EmailContent.Attachments
- Assembly
- MailFathom.Application.dll
What a redeemed link turned out to authorize: one attachment of one email.
public sealed record AttachmentDownloadTicket : IEquatable<AttachmentDownloadTicket>
- Inheritance
-
AttachmentDownloadTicket
- Implements
- Inherited Members
Remarks
A ticket exists only after a signature verified, so its two values are this deployment's own rather than a caller's. That is what lets the use case behind it look the email up directly instead of validating text again.
The position is the identity because it is the only stable one a message's parts have: MIME gives an attachment no
identifier, a Content-ID is optional and sender-chosen, and a file name is neither unique nor required. The
walk that produces it is the same one get_email_content lists attachments with, over bytes that never change
once stored, so the position a link names is the position the listing showed.
Constructors
- AttachmentDownloadTicket(StoredEmailId, int)
What a redeemed link turned out to authorize: one attachment of one email.
Properties
- AttachmentPosition
The attachment's zero-based position in the order the message's structure is walked.
- StoredEmailId
The email the attachment belongs to.