Table of Contents

Method Create

Namespace
MailFathom.Application.Emails.Mailboxes
Assembly
MailFathom.Application.dll

Create(IEnumerable<MailAccountId>?, IEnumerable<MailFolderIdentity>?)

Creates the scope a query runs with, from identities already resolved against configuration.

public static MailboxScope Create(IEnumerable<MailAccountId>? accountIds, IEnumerable<MailFolderIdentity>? selectedFolders)

Parameters

accountIds IEnumerable<MailAccountId>

The accounts the query runs against, which are the served ones when a request named none.

selectedFolders IEnumerable<MailFolderIdentity>

The folders the query runs against, one pair per account, with every role a request named already turned into the folder it means on that account, or null to name none.

Returns

MailboxScope

The scope, with both lists deduplicated and ordered.

Remarks

No count limit applies to either list, and the two constants above say where the limits are enforced instead. Both lists are configuration read through a resolution rather than caller input: a deployment that serves more accounts than a request may name still answers a request that names none, and one role a request named can mean a folder on each of those accounts.