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

@ -727,7 +727,7 @@ no-attachment-warning=^[^>]*attach(ed|ment)
#
# Example (obviously, this requires that you write your main text/plain body
# using the markdown syntax):
# text/html=pandoc -f markdown -t html --standalone
text/html=pandoc -f markdown -t html --standalone
[filters]
#

View file

@ -180,6 +180,7 @@ q = :choose -o d discard abort -o p postpone postpone<Enter> # Abort or postpone
e = :edit<Enter> # Edit (body and headers)
a = :attach<space> # Add attachment
d = :detach<space> # Remove attachment
H = :multipart text/html<Enter>
[terminal]
$noinherit = true

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

View file

@ -67,6 +67,7 @@ command = "iwes"
[[language]]
name = "markdown"
file-types = ["md", "livemd", "markdown", "mdx", "mkd", "mkdn", "mdwn", "mdown", "markdn", "mdtxt", "mdtext", "workbook", { glob = "PULLREQ_EDITMSG" }, { glob = "/tmp/aerc-compose-*.eml" }]
# language-servers = ["ltex-ls-plus", "marksman", "scls"]
language-servers = ["harper-ls", "marksman", "scls"]
formatter = { command = "dprint", args = ["fmt", "--stdin", "md"] }
@ -91,6 +92,9 @@ onSave = true
name = "mail"
# scope = "text.mail"
# file-types = ["eml"]
# file-types = [
# "eml"
# ]
language-servers = ["harper-ls"]
# injection-regex = "mail|eml|email"