Constructor MailRuleActionPermissions
- Namespace
- MailFathom.Application.Rules.Actions
- Assembly
- MailFathom.Application.dll
MailRuleActionPermissions(bool, bool, bool, bool)
States which of the four mutations a rule may ask for on one account.
public MailRuleActionPermissions(bool PermitsRelocate, bool PermitsCopy, bool PermitsDelete, bool PermitsSetSeen)
Parameters
PermitsRelocateboolWhether a rule may move mail into another folder.
PermitsCopyboolWhether a rule may put a second occurrence into another folder.
PermitsDeleteboolWhether a rule may remove mail from the folder it is in.
PermitsSetSeenboolWhether a rule may set or clear the remote
\Seenflag.
Remarks
What automation may do to a mailbox is the owner's decision rather than a rule's, so it is declared per account and per mutation instead of as one switch: an installation can run every rule it has with deletion refused, which is the case this exists for. A rule declaring an action its account does not permit is refused when the configuration is read rather than skipped later, because a rule that silently does nothing is indistinguishable from one that never matched.
Deletion is the one action that is opt-in. The other three are reversible from an ordinary mail client — a message filed can be moved back, a copy removed, a flag cleared — and a deletion is the one that is not, so an account saying nothing about it means no.