{{define "webmail_rules.html"}} Filter Rules - Webmail {{template "csrf_script" .}}
{{range .flashes}} {{end}}

Filter Rules

Rules run in priority order (lowest first) at delivery time; the first match wins. "Move to folder" delivers into a separate folder instead of INBOX — check Mail once something's actually landed there.
Add Rule
Existing Rules
{{if .rules}}
{{range .rules}} {{end}}
PriorityConditionActionStatusActions
{{.Priority}} {{ruleSummary .}} {{if eq .Action "move_to_folder"}}Move to {{.ActionValue}} {{else if eq .Action "mark_as_spam"}}Mark as Spam {{else if eq .Action "delete"}}Delete {{else}}Mark as read{{end}} {{if .IsActive}}Active{{else}}Inactive{{end}}
{{else}}

No rules yet

Add one above to automatically sort or act on incoming mail.

{{end}}
{{template "compose_widget" .}} {{end}}