Your message dated Fri, 25 Aug 2023 00:45:49 +0530
with message-id <20230824191549.bjhxuywn3cctj...@office.mailbox.org>
and subject line Re: aerc: Raw HTML when quoting HTML email
has caused the Debian Bug report #1041119,
regarding aerc: Raw HTML when quoting HTML email
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1041119: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041119
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Control: tags -1 wontfix

On Sat, 15 Jul 2023 00:42:42 +0200 Pelle <pe...@riseup.net> wrote:
> 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?

No, as that'd mean making w3m as a hardcore dependency. In the above
code, if `lynx` is not installed, I guess this may just choke.

If upstream decides to get this by default in their template, I'll
happily comply; but I refuse to diverge at this point. I've also copied
Robin with this email (incase they have more comments).

I'm closing this bug.

Best,
Nilesh

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to