You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/10 18:03:23 UTC
[incubator-ponymail-foal] 01/02: we can trim here as well
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit db62565758296784f77ceda2151472e818b94771
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 10 20:01:55 2020 +0200
we can trim here as well
---
server/endpoints/thread.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/endpoints/thread.py b/server/endpoints/thread.py
index 779dbe2..af3cc1a 100644
--- a/server/endpoints/thread.py
+++ b/server/endpoints/thread.py
@@ -40,6 +40,8 @@ async def process(
email["children"] = thread
emails.append(email)
+ for email in emails:
+ plugins.mbox.trim_email(email, external=True)
return {
"thread": email,
"emails": emails,