Table of Contents

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

accountId MailAccountId

The account the folder belongs to.

role MailFolderSpecialUse

The 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.