mirror of
https://git.sr.ht/~rjarry/aerc
synced 2025-02-22 14:53:57 +01:00

Add the filters folders to the exec search path when calling the "exec" template function. If replying to a text/html part, convert it to plain text using the default html filter. Changelog-changed: The default `quoted_reply` template now converts `text/html` parts to plain text before quoting them. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Bence Ferdinandy <bence@ferdinandy.com>
12 lines
360 B
Text
12 lines
360 B
Text
X-Mailer: aerc {{version}}
|
|
|
|
On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{.OriginalFrom | names | join ", "}} wrote:
|
|
{{ if eq .OriginalMIMEType "text/html" -}}
|
|
{{- exec `html` .OriginalText | trimSignature | quote -}}
|
|
{{- else -}}
|
|
{{- trimSignature .OriginalText | quote -}}
|
|
{{- end}}
|
|
{{- with .Signature }}
|
|
|
|
{{.}}
|
|
{{- end }}
|