Method FindFolderPlayingRole
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
FindFolderPlayingRole(MailAccountId, MailFolderSpecialUse)
Gets the folder of an account that plays a role.
MailFolderMapping? FindFolderPlayingRole(MailAccountId accountId, MailFolderSpecialUse role)
Parameters
accountIdMailAccountIdThe account the folder belongs to.
roleMailFolderSpecialUseThe role the folder plays.
Returns
- MailFolderMapping
The mapping configuration labelled with that role, or null when the account maps no such folder. Nothing is guessed in that case: neither the inbox, nor the first mapping, nor a folder whose name resembles the role, because a feature filing mail into a folder nobody nominated is worse than one reporting that it has nowhere to file it.