Table of Contents

Method CountUnvouchedAsync

Namespace
MailFathom.Application.Mail.Delivery.Governance
Assembly
MailFathom.Application.dll

CountUnvouchedAsync(IReadOnlyList<AuthoredEmailRecipient>, CancellationToken)

Counts the recipients a caller named itself that nothing this deployment holds vouches for.

public Task<int> CountUnvouchedAsync(IReadOnlyList<AuthoredEmailRecipient> recipients, CancellationToken cancellationToken)

Parameters

recipients IReadOnlyList<AuthoredEmailRecipient>

Everybody the message is addressed to, whoever put them there.

cancellationToken CancellationToken

Cancels the reads of the book.

Returns

Task<int>

How many of the addresses the caller supplied are ones this deployment has no trace of.

Remarks

Text that names no mailbox at all is not counted here. Whether an address parses is the composition's question and it refuses one that does not, so counting unparsable text would refuse a send for a reason the caller is about to be told properly.

Exceptions

ArgumentNullException

Thrown when recipients is null.