Use as_bytes() instead of as_string() to generate mbox
authorMagnus Hagander <magnus@hagander.net>
Fri, 15 Jul 2022 19:04:03 +0000 (21:04 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 15 Jul 2022 19:04:03 +0000 (21:04 +0200)
commitfe8b1cb3911a6856bd47e66b07827faf6ab32747
tree59cdab409f66ec5752f124b7a0bed9aba4166f33
parentf9720d7408838666d074fee86760fa57f66119f9
Use as_bytes() instead of as_string() to generate mbox

We're supposed to feed django bytes, and by feeding it a string it got
converted bytes->string by the mail end and then string->bytes by
django. Which promptly blew up on bad encodings. By keeping it as bytes
all the way, the problem is ignored.
django/archives/mailarchives/views.py