aboutsummaryrefslogtreecommitdiff
path: root/tw/services/files
diff options
context:
space:
mode:
authorTimo Wilken2024-06-12 12:12:38 +0200
committerTimo Wilken2024-06-12 12:12:38 +0200
commit418b74c5079a5c27d894c3d542bbdb6f1adcd5ce (patch)
tree3731ef0231ec785c08c0a6c8f4ecc9f80acb36d2 /tw/services/files
parent07dfead0a9eea8a2313d1dcfb673cb2452e0703f (diff)
Decode HTML-only emails automatically when replying in aerc
Diffstat (limited to 'tw/services/files')
-rw-r--r--tw/services/files/aerc/templates/quoted_reply8
1 files changed, 8 insertions, 0 deletions
diff --git a/tw/services/files/aerc/templates/quoted_reply b/tw/services/files/aerc/templates/quoted_reply
new file mode 100644
index 00000000..74585ee8
--- /dev/null
+++ b/tw/services/files/aerc/templates/quoted_reply
@@ -0,0 +1,8 @@
+X-Mailer: aerc {{version}}
+
+On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{(index .OriginalFrom 0).Name}} wrote:
+{{if eq .OriginalMIMEType "text/html"}}
+{{exec `lynx -display_charset=UTF-8 -dump -stdin` .OriginalText | quote}}
+{{else}}
+{{trimSignature .OriginalText | quote}}
+{{end}}