20 lines
518 B
Text
20 lines
518 B
Text
X-Mailer: aerc {{version}}
|
|
|
|
{{ if or
|
|
(eq .OriginalMIMEType "text/html")
|
|
(contains (toLower .OriginalText) "<html")
|
|
}}
|
|
{{- $text := exec `/usr/lib/aerc/filters/html` .OriginalText | replace `\r` `` -}}
|
|
{{- range split "\n" $text -}}
|
|
{{- if eq . "References:" }}{{break}}{{end}}
|
|
{{- if or
|
|
(eq (len .) 0)
|
|
(match `^\[.+\]\s*$` .)
|
|
}}{{continue}}{{end}}
|
|
{{- printf "%s\n" . | replace `^[\s]+` "" | quote}}
|
|
{{- end -}}
|
|
{{- else }}
|
|
{{- trimSignature .OriginalText | quote -}}
|
|
{{- end -}}
|
|
|
|
{{.Signature -}}
|