Integrated: 2637: Decoding emails from quoted-printable is broken
Erik Joelsson
erikj at openjdk.org
Wed Dec 17 18:49:02 UTC 2025
On Fri, 12 Dec 2025 19:13:15 GMT, Erik Joelsson <erikj at openjdk.org> wrote:
> During my initial implementation of Mailman 3 support, I made an attempt at decoding quoted-printable encoded email bodies. That implementation isn't working that well. I only took 2 byte encoded UTF-8 characters into account, but we of course need to also handle 3 and 4 byte characters.
>
> Instead of trying to do this with regular expressions, I bit the bullet and started working on a byte array, byte by byte. That actually makes it a lot simpler as we just need to translate each encoded triplet (`=XX`) at a time and then just convert the resulting byte array using Java's built in character set decoder.
This pull request has now been integrated.
Changeset: 28811a90
Author: Erik Joelsson <erikj at openjdk.org>
URL: https://git.openjdk.org/skara/commit/28811a90fe396cf3b2fa2c38fd2ecec86f063b7b
Stats: 64 lines in 3 files changed: 45 ins; 8 del; 11 mod
2637: Decoding emails from quoted-printable is broken
Reviewed-by: zsong, tbell
-------------
PR: https://git.openjdk.org/skara/pull/1747
More information about the skara-dev
mailing list