1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-22 14:53:57 +01:00
aerc/templates/quoted_reply
Robin Jarry 601a0f959e templates: convert html parts before quoting
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>
2025-01-14 21:48:24 +01:00

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 }}