Table of Contents

Method OpenAsync

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

OpenAsync(StoredEmailContent, int, CancellationToken)

Opens the attachment at one position of a stored message.

Task<OpenedEmailAttachmentResult> OpenAsync(StoredEmailContent content, int attachmentPosition, CancellationToken cancellationToken)

Parameters

content StoredEmailContent

The stored raw MIME.

attachmentPosition int

The zero-based position in the walk order.

cancellationToken CancellationToken

Cancels the parse.

Returns

Task<OpenedEmailAttachmentResult>

The opened attachment, or the reason there is none to open.

Exceptions

ArgumentNullException

Thrown when content is null.