{{define "webmail_rules.html"}} Settings - Webmail {{template "webmail_settings_style" .}} {{template "csrf_script" .}}
{{range .flashes}} {{end}}
Settings
{{template "webmail_settings_nav" .}}
Rules run in priority order (lowest first) at delivery time; the first match wins.
{{if .editing}}Edit Rule{{else}}Add Rule{{end}}
{{if .editing}}
{{end}}

{{if .editing}}Cancel{{end}}
Existing Rules
{{if .rules}}
{{range .rules}} {{end}}
PriorityNameConditionActionStatusActions
{{.Priority}} {{if .Name}}{{.Name}}{{else}}(unnamed){{end}} {{ruleSummary .}} {{if eq .Action "move_to_folder"}}Move to {{.ActionValue}} {{else if eq .Action "mark_as_spam"}}Mark as Junk {{else if eq .Action "delete"}}Delete {{else if eq .Action "forward"}}Forward to {{.ActionValue}}{{if not .ActionOptions.KeepCopy}} (no local copy){{end}} {{else}}Mark as read{{end}}
{{else}}
No rules yet

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

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