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
assignedAccountsIReadOnlyList<MailAccountId>The accounts ReadAssignedAccountsAsync(CancellationToken) answered, read once for every email asked about.
accountIdMailAccountIdThe account the email was read from.
folderAliasMailFolderAliasThe folder the email was read from.
Returns
- bool
The same answer IsReadableByToolsAsync(MailAccountId, MailFolderAlias, CancellationToken) gives, without reading the assignments again.