Package: reportbug Version: 7.1.2 Severity: minor Tags: patch Dear Maintainer,
Another finding from playing with non-ascii characters in the configuration: It would be nice to show the from address in a more readable format than rfc 2047 encoding. Proposed patch attached. Before: > Using '=?utf-8?q?Hans_M=C3=BCller?= <foo@bar.invalid>' as your from address. After: > Using 'Hans Müller <foo@bar.invalid>' as your from address.
>From e1e88e8d5d865dca3d7ad7fb7507423a398248b6 Mon Sep 17 00:00:00 2001 From: Nis Martensen <nis.marten...@web.de> Date: Sat, 14 Jan 2017 11:52:52 +0100 Subject: [PATCH 4/4] Output user from address in human-readable format I.e., not in rfc 2047 encoded format --- bin/reportbug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/reportbug b/bin/reportbug index 78ee665..e2247c6 100755 --- a/bin/reportbug +++ b/bin/reportbug @@ -1323,7 +1323,8 @@ class UI(object): "Please change your locale if this is incorrect.\n\n", charset) fromaddr = utils.get_user_id(self.options.email, self.options.realname, charset) - ewrite("Using '%s' as your from address.\n", fromaddr) + ewrite("Using '%s' as your from address.\n", + str(email.header.make_header(email.header.decode_header(fromaddr)))) if self.options.debugmode: sendto = fromaddr -- 2.1.4