Mail Rules Editor
Forms · MailRulesEditor
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
If
Props
MailRulesEditor
| Prop | Type | Notes |
|---|---|---|
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[]) => void | Shows "Save rules". |
saving? | boolean | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |