Table of Contents

Method OpenWalkAsync

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

OpenWalkAsync(StoredEmailContent, CancellationToken)

Parses one stored message once and opens a walk over every attachment in it.

Task<OpenedEmailAttachmentWalkResult> OpenWalkAsync(StoredEmailContent content, CancellationToken cancellationToken)

Parameters

content StoredEmailContent

The stored raw MIME.

cancellationToken CancellationToken

Cancels the parse.

Returns

Task<OpenedEmailAttachmentWalkResult>

The walk, which the caller disposes, or the reason the bytes yielded none.

Remarks

The same parse, the same structural limits, and the same walk order as the single-position read above — what differs is only how many times it is paid for. A caller reading one position asks for one; a pass reading every attachment of a message asks for this, because parsing raw MIME is the most expensive local work an account run does and doing it once per attachment multiplies that by the attachment count.

Exceptions

ArgumentNullException

Thrown when content is null.