Method ReadMetadataAsync
- Namespace
- MailFathom.Application.Emails.Extraction
- Assembly
- MailFathom.Application.dll
ReadMetadataAsync(RemoteEmailContent, CancellationToken)
Reads one message's normalized metadata.
Task<EmailMimeExtractionResult> ReadMetadataAsync(RemoteEmailContent content, CancellationToken cancellationToken)
Parameters
contentRemoteEmailContentThe raw MIME already fetched for the occurrence.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<EmailMimeExtractionResult>
The metadata, or the reason the message could not be read.
Remarks
Content that does not parse, declares more parts than the configured limit, or nests deeper than it returns as a failure result rather than as an exception, so one unreadable message never stops a synchronization batch.
Exceptions
- ArgumentNullException
Thrown when
contentis null.