Table of Contents

Method IsReadableByTools

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

IsReadableByTools(IReadOnlyList<MailAccountId>, MailAccountId, MailFolderAlias)

Reports whether a tool may read one email, given the accounts the user in hand was already read to be assigned.

public bool IsReadableByTools(IReadOnlyList<MailAccountId> assignedAccounts, MailAccountId accountId, MailFolderAlias folderAlias)

Parameters

assignedAccounts IReadOnlyList<MailAccountId>

The accounts ReadAssignedAccountsAsync(CancellationToken) answered, read once for every email asked about.

accountId MailAccountId

The account the email was read from.

folderAlias MailFolderAlias

The folder the email was read from.

Returns

bool

The same answer IsReadableByToolsAsync(MailAccountId, MailFolderAlias, CancellationToken) gives, without reading the assignments again.