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
storedEmailIdStoredEmailIdThe message to draw.
retainRemoteImageReferencesboolWhether the reader has asked this message's remote pictures for, so the cleaned document matches what they are looking at.
cancellationTokenCancellationTokenCancels the pass when the reader stops waiting.
Returns
- Task<CleanedMailBody>
The rendering, or null where this caller holds no such message.