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:22 UTC

[incubator-ponymail-foal] branch master updated (bc7bf3f -> bccfb77)

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git.


    from bc7bf3f  trim emails before sending payload, to reduce download size
     new db62565  we can trim here as well
     new bccfb77  list_raw is also used by the UI

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 server/endpoints/thread.py | 2 ++
 server/plugins/mbox.py     | 1 +
 2 files changed, 3 insertions(+)


[incubator-ponymail-foal] 01/02: we can trim here as well

Posted by hu...@apache.org.
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,


[incubator-ponymail-foal] 02/02: list_raw is also used by the UI

Posted by hu...@apache.org.
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 bccfb77f8b870e9b5fc728c53f17221d804e133f
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Sep 10 20:03:02 2020 +0200

    list_raw is also used by the UI
---
 server/plugins/mbox.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/plugins/mbox.py b/server/plugins/mbox.py
index dcfb066..108f35d 100644
--- a/server/plugins/mbox.py
+++ b/server/plugins/mbox.py
@@ -44,6 +44,7 @@ mbox_cache_privacy: typing.Dict[str, bool] = {}
 used_ui_fields = [
     "private",
     "list",
+    "list_raw",
     "attachments",
     "from",
     "message-id",