fix import runtime patches, call milter.replacebody only once per mail

This commit is contained in:
2021-02-17 18:08:39 +01:00
parent 5a746f5636
commit 0db61ed833
3 changed files with 30 additions and 19 deletions

View File

@@ -277,7 +277,7 @@ def replace_links(milter, repl, pretend=False,
if text_content is not None:
logger.info("replace links in text body")
content = text_content
content = "test content"
text_body.set_content(
content.encode(), maintype="text", subtype="plain")