Skip to content
Twentyfirst UIPro

Mail Rules Editor

Forms · MailRulesEditor

View as Markdown

Rules for incoming mail: if all (or any) of the conditions match (from, to, subject or text contains, doesn't contain, is, starts or ends with), then run the actions (move to a folder, archive, mark as read, star, forward, hand to an agent, delete). Each rule has a name and can be switched off. The value is a list of MailRules; onSave adds a save button.

If
Then
If
Then

Props

MailRulesEditor

PropTypeNotes
value?MailRule[]
defaultValue?MailRule[]
onChange?(rules: MailRule[]) => void
folders?Option[]Folders for "Move to".
agents?Option[]Agents for "Hand to agent" (the action shows only with agents).
onSave?(rules: MailRule[]) => voidShows "Save rules".
saving?boolean
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.