diff options
author | Timo Wilken | 2024-06-12 12:12:38 +0200 |
---|---|---|
committer | Timo Wilken | 2024-06-12 12:12:38 +0200 |
commit | 418b74c5079a5c27d894c3d542bbdb6f1adcd5ce (patch) | |
tree | 3731ef0231ec785c08c0a6c8f4ecc9f80acb36d2 /tw | |
parent | 07dfead0a9eea8a2313d1dcfb673cb2452e0703f (diff) |
Decode HTML-only emails automatically when replying in aerc
Diffstat (limited to 'tw')
-rw-r--r-- | tw/services/desktop.scm | 1 | ||||
-rw-r--r-- | tw/services/files/aerc/templates/quoted_reply | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tw/services/desktop.scm b/tw/services/desktop.scm index 74dec352..6d9edfa8 100644 --- a/tw/services/desktop.scm +++ b/tw/services/desktop.scm @@ -483,6 +483,7 @@ proprietary NVIDIA driver?")) ("aerc/binds.conf" ,(local-file "files/aerc/binds.conf")) ("aerc/filters" ,(local-file "files/aerc/filters" #:recursive? #t)) ("aerc/stylesets/catppuccin" ,(local-file "files/aerc/catppuccin.conf")) + ("aerc/templates" ,(local-file "files/aerc/templates" #:recursive? #t)) ("vdirsyncer/config" ,(if work? (local-file "files/vdirsyncer.work.conf") (local-file "files/vdirsyncer.conf"))) 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}} |