AutoYADM commit: 2025-03-12 01:45:06

This commit is contained in:
Daniel Fichtinger 2025-03-12 01:45:06 -04:00
parent 315bdc2762
commit e3b5bc7e7b
6 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,8 @@
X-Mailer: aerc {{version}}
Forwarded message from {{.OriginalFrom | names | join ", "}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}:
{{.OriginalText}}
{{- with .Signature }}
{{.}}
{{- end }}

View file

@ -0,0 +1,5 @@
X-Mailer: aerc {{version}}
{{- with .Signature }}
{{.}}
{{- end -}}

View file

@ -0,0 +1,20 @@
{{ 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 -}}