Method GetAliasBoundToAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
GetAliasBoundToAsync(MailAccountId, RemoteFolderPath, CancellationToken)
Gets the alias whose current binding names a remote folder.
Task<MailFolderAlias?> GetAliasBoundToAsync(MailAccountId account, RemoteFolderPath remotePath, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account owning the bindings.
remotePathRemoteFolderPathThe remote folder the alias is looked for by.
cancellationTokenCancellationTokenCancels the lookup.
Returns
- Task<MailFolderAlias?>
The alias currently bound to that folder, or null when the account binds no alias to it.
Remarks
The reverse of the read above, and the only way back from a remote path to the name everything a client is told is expressed in: a mutation names where it files by the path an IMAP command is issued against, and a folder crossed into has to be announced by its alias. Only a current binding answers, because a generation the alias has since moved off names the folder it used to be.