Am 23.09.21 um 10:08 schrieb Stephen J. Turnbull:
Markus Schaaf writes:
Nothing broke, but it didn't work either. I'm a bit surprised that mailman3 was designed without the idea to preserve the body, after signatures have been a thing for at least a decade.
Patching (including monkey-patching) the Python standard library email package has caused headaches in the past. As you discovered, it's not the case that a one-line patch will do the job.
It's not about patching. It's understood since the early days of MIME, that you cannot recreate an encoded representation using the plain text alone. If one had planned for a feature to preserve the body, one had to keep the encoded form (or meta data to recreate it) around and inject it into the smtp sender, if that option were enabled.
BR