Property MayCreateMissingFolder
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
MayCreateMissingFolder
Gets whether MailFathom may create the folder on the mail server when the account's server advertises none at the configured path.
public bool MayCreateMissingFolder { get; }
Property Value
Remarks
It defaults to false and is the one switch on a mapping that authorizes an act against somebody else's mail server rather than withdrawing a folder from something MailFathom does locally, which is why it does not follow the participation switches in defaulting to true. A mapping that says nothing therefore behaves as it did before creation existed, and a mistyped path stays an alias that resolves to nothing rather than becoming a folder named after the mistake.
It is expressible only alongside a configured path, because a folder that does not exist advertises no role and nothing here may invent a name for one. That is a property of the factories rather than a rule stated elsewhere: ToSpecialUse(MailFolderAlias, MailFolderSpecialUse, MailFolderParticipation?) takes no such argument, so a role mapping can never carry it.