Table of Contents

Class RemoteEmailContentFetchResult

Namespace
MailFathom.Application.EmailContent.Storage
Assembly
MailFathom.Application.dll

Carries the raw MIME a fetch returned, or the reason none was returned.

public sealed record RemoteEmailContentFetchResult : IEquatable<RemoteEmailContentFetchResult>
Inheritance
RemoteEmailContentFetchResult
Implements
Inherited Members

Remarks

An oversized email is a result rather than an exception because the caller acts on it directly: the occurrence is recorded as ExceededSizeLimit and stepped over, leaving the batch and the folder checkpoint to continue, exactly as EmailMimeExtractionResult does one step later for an email nobody can parse.

The limit is reached while the stream is being read, so it catches a server whose advertised size understated the payload as well as one that reported it honestly.

Properties

Content

Gets the content, which is present exactly when Outcome is Retrieved.

Outcome

Gets what happened.

Methods

ExceededSizeLimit()

Reports a payload abandoned because it grew past the configured limit.

Retrieved(RemoteEmailContent)

Reports content the mailbox served in full.