These malformed links are critical now, as gmail and others use the one click unsubscribe for those who want to report spam, so having them function is very important.
I used ChatGPT to create this patch, and have tested it. It is attached and I hope I don’t have to keep patching it myself with new updates–please consider fixing this bug for good!
It is just small changes to two files:
/lists/admin/lib.php
/lists/admin/PHPMailer6/src/PHPMailer.php
@keeenone Which version of phplist are you using? I send through SMTP and don’t have encoded headers. If I change to send using php mail() then I do get encoded headers.
This problem has been going on continuously for years, but only now could I address it with a fix using ChatGPT for help. The subject is still doing this, but I haven’t had time to fix that yet.