Table of Contents

Method CleanAsync

Namespace
MailFathom.Application.EmailContent.Cleaning
Assembly
MailFathom.Application.dll

CleanAsync(StoredEmailId, bool, CancellationToken)

Cleans one of the acting caller's messages, or says why the reduced document is what came back.

public Task<CleanedMailBody?> CleanAsync(StoredEmailId storedEmailId, bool retainRemoteImageReferences, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The message to draw.

retainRemoteImageReferences bool

Whether the reader has asked this message's remote pictures for, so the cleaned document matches what they are looking at.

cancellationToken CancellationToken

Cancels the pass when the reader stops waiting.

Returns

Task<CleanedMailBody>

The rendering, or null where this caller holds no such message.