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 neither the book nor their user's mailboxes vouch 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 neither the book nor the caller's user's mailboxes hold.

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.

PrincipalNotAuthorizedException

Thrown when the work in hand is acting for no user, since what vouches for an address is a user's own.