AutoYADM commit: 2025-03-12 01:45:06
This commit is contained in:
parent
315bdc2762
commit
e3b5bc7e7b
6 changed files with 39 additions and 1 deletions
8
.config/aerc/templates/forward_as_body
Normal file
8
.config/aerc/templates/forward_as_body
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 }}
|
5
.config/aerc/templates/new_message
Normal file
5
.config/aerc/templates/new_message
Normal file
|
@ -0,0 +1,5 @@
|
|||
X-Mailer: aerc {{version}}
|
||||
{{- with .Signature }}
|
||||
|
||||
{{.}}
|
||||
{{- end -}}
|
20
.config/aerc/templates/quoted_reply
Normal file
20
.config/aerc/templates/quoted_reply
Normal 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 -}}
|
Loading…
Add table
Add a link
Reference in a new issue