Table of Contents

Enum MailKeywordChangeDirection

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

Names what a caller wants done with the keywords it listed.

public enum MailKeywordChangeDirection

Fields

Add = 0

Put the listed keywords on the email, leaving every other keyword it carries alone.

Remove = 1

Take the listed keywords off the email, leaving every keyword it was not asked about alone.

Replace = 2

Make the email's keywords exactly the listed ones, which for an empty list clears every keyword it has.

Remarks

The direction is stated rather than inferred from the list, because an empty list means opposite things under two of the three: it is nothing to do for an addition and a removal, and it is carry no keyword at all for a replacement. A contract that guessed would make clearing every label unreachable and would make an accidental empty list destructive, which are the two ways round of the same mistake.