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 <[email protected]>
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,

Reply via email to