Table of Contents

Constructor AttachmentDownloadTicket

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

AttachmentDownloadTicket(StoredEmailId, int)

What a redeemed link turned out to authorize: one attachment of one email.

public AttachmentDownloadTicket(StoredEmailId StoredEmailId, int AttachmentPosition)

Parameters

StoredEmailId StoredEmailId

The email the attachment belongs to.

AttachmentPosition int

The attachment's zero-based position in the order the message's structure is walked.

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.