On 1/2/23 07:06, Jan Eden via Mailman-users wrote:
On 2023-01-02 14:36, Eggert Ehmke via Mailman-users wrote:
Thank you, that worked! Now all my addresses are clean.
Still, don't you think this should be possible via Postorius, or by some mailman cli command, like mailman rename_member <old> <new>
Yes, it should be possible to change the display name for an address via Postorius. See https://gitlab.com/mailman/postorius/-/issues/451.
It happened I had still the patched cli_members.py where I had both the old and new line active: print(formataddr((address.display_name, address.original_email)), file=outfp) print(f'{address.display_name} <{address.original_email}>', file=outfp) The first (old) line still produces the output with utf-8 codes. Is this to be expected?
I would assume the original line outputs the QP-escaped names, to be used in an email header.
Yes. The original formataddr((address.display_name, address.original_email))
creates the format display name <email>
suitable for use in an email header. Thus, if the display name contains
non-ascii, it is RFC 2047 encoded. The encoding may be quoted-printable
or base64 depending on which is shorter.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan