You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2022/01/28 21:52:07 UTC
[incubator-ponymail-foal] 01/02: Management interface fails to update body_short
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit d3222941db450be086f1c71b549b6a6ac0b4b586
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jan 28 21:51:43 2022 +0000
Management interface fails to update body_short
This fixes #219
---
server/endpoints/mgmt.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index 61bcf5f..6e69c82 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -175,6 +175,7 @@ async def process(
email["list"] = lid
email["list_raw"] = lid
email["body"] = new_body
+ email["body_short"] = new_body[:plugins.messages.SHORT_BODY_MAX_LEN+1]
if attach_edit is not None: # Only set if truly editing attachments...
email["attachments"] = attach_edit