[Reportbug-maint] Bug#646573: UTF-8 characters in subject are passed to MUA encoded

Sandro Tosi morph at debian.org
Mon Oct 31 14:51:32 UTC 2011


On Tue, Oct 25, 2011 at 12:05, martin f krafft <madduck at debian.org> wrote:
> Package: reportbug
> Version: 6.2.1
> Severity: normal
>
> I just submitted #646571 and that only worked through some magic.
> The problem, which I only noticed much later, was that reportbug
> spawned mutt with a subject line verbatim
> "=?utf-8?q?mac=E2=86=92eui64_conversion_not_working?=", which mutt
> then, of course, encoded to US-ASCII. debbugs seems to handle the
> case properly, but reportbug should not encode subject lines when
> passing them to MUA via a plain-text API.

Just as a self reference (since I'm unable to identify the bug right
now) in reportbug.submit the function send_report() is where the
message composition happens. in the 'for (header, value) in headers'
the Subject header is correctly displayed as in utf-8 format, likewise
after the 'rfc2047_encode_header(value, charset, mua)' but then again
below in the 'message.as_string()' it's displayed with
'=?utf-8?......:' while nothing in between adding the header and
converting the message changed anything; in particular, the message
shows the encoded headers even right after the for loop.

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi





More information about the Reportbug-maint mailing list