AutoYADM commit: 2025-03-14 20:30:06
This commit is contained in:
parent
8d516fa5f3
commit
e807710f35
5 changed files with 36 additions and 12 deletions
|
@ -1,8 +1,20 @@
|
|||
X-Mailer: aerc {{version}}
|
||||
|
||||
Forwarded message from {{.OriginalFrom | names | join ", "}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}:
|
||||
{{.OriginalText}}
|
||||
{{- with .Signature }}
|
||||
{{ 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 -}}
|
||||
|
||||
{{.}}
|
||||
{{- end }}
|
||||
{{.Signature -}}
|
||||
|
|
8
.config/aerc/templates/forward_as_body.bak
Normal file
8
.config/aerc/templates/forward_as_body.bak
Normal 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 }}
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
X-Mailer: aerc {{version}}
|
||||
|
||||
{{ if or
|
||||
(eq .OriginalMIMEType "text/html")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue