diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index 3438c8fe..0d2d1ee1 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -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] # diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf index d7c5a9eb..143c5c75 100644 --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -180,6 +180,7 @@ q = :choose -o d discard abort -o p postpone postpone # Abort or postpone e = :edit # Edit (body and headers) a = :attach # Add attachment d = :detach # Remove attachment +H = :multipart text/html [terminal] $noinherit = true diff --git a/.config/aerc/templates/forward_as_body b/.config/aerc/templates/forward_as_body new file mode 100644 index 00000000..e8d15dcb --- /dev/null +++ b/.config/aerc/templates/forward_as_body @@ -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 }} diff --git a/.config/aerc/templates/new_message b/.config/aerc/templates/new_message new file mode 100644 index 00000000..8ff5f46e --- /dev/null +++ b/.config/aerc/templates/new_message @@ -0,0 +1,5 @@ +X-Mailer: aerc {{version}} +{{- with .Signature }} + +{{.}} +{{- end -}} diff --git a/.config/aerc/templates/quoted_reply b/.config/aerc/templates/quoted_reply new file mode 100644 index 00000000..cec62c56 --- /dev/null +++ b/.config/aerc/templates/quoted_reply @@ -0,0 +1,20 @@ + + +{{ if or + (eq .OriginalMIMEType "text/html") + (contains (toLower .OriginalText) "