Package: aerc
Version: 0.15.2-1
Severity: normal

Dear aerc maintainer,

When creating a quoted reply to an email that _only_ has an HTML part, the 
quoted email is in raw HTML:

> <!DOCTYPE html>
> <html lang="en">
> <head>
>     <meta charset="UTF-8">
>     ...

I was hoping that the quote by default would be converted to plaintext.

I worked around this by editing the quoted_reply template to use lynx to dump 
the rendered HTML:

```
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"}}
{{quote (.OriginalText | exec `lynx -dump -stdin`)}}
{{else}}
{{quote .OriginalText}}
{{end}}
```

Would it make sense to have something like that as default behaviour, perhaps 
using w3m which is already a recommended dependency?

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.3.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages aerc depends on:
ii  libc6        2.37-5
ii  libnotmuch5  0.37-1+b1

Versions of packages aerc recommends:
ii  dante-client  1.4.2+dfsg-7
ii  gnupg         2.2.40-1.1
pn  w3m           <none>

Versions of packages aerc suggests:
ii  notmuch  0.37-1+b1

-- no debconf information

Reply via email to