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 2021/12/16 14:59:49 UTC

[incubator-ponymail-foal] branch master updated (4303192 -> fc13123)

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

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


    from 4303192  Update version
     new b44a987  Only needed here
     new fc13123  Update version

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/mgmt.py | 2 +-
 server/server_version.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

[incubator-ponymail-foal] 02/02: Update version

Posted by se...@apache.org.
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 fc13123d858934bb30360df1e3386e067aa94dab
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 14:59:39 2021 +0000

    Update version
---
 server/server_version.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/server_version.py b/server/server_version.py
index 80a61f4..f2cf351 100644
--- a/server/server_version.py
+++ b/server/server_version.py
@@ -1,2 +1,2 @@
 # This file is generated by server/update_version.sh
-PONYMAIL_SERVER_VERSION = '91f8ad8'
+PONYMAIL_SERVER_VERSION = 'b44a987'

[incubator-ponymail-foal] 01/02: Only needed here

Posted by se...@apache.org.
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 b44a98725636d672c780a2b1cfa01f0cca903121
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 14:59:19 2021 +0000

    Only needed here
---
 server/endpoints/mgmt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index 28335ea..97c5c5b 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -55,7 +55,6 @@ async def process(
             assert isinstance(doc, str), "Document ID must be a string"
             email = await plugins.messages.get_email(session, permalink=doc)
             if email and isinstance(email, dict) and plugins.aaa.can_access_email(session, email):
-                email["deleted"] = True
                 if server.config.ui.fully_delete and email["id"] and email["dbid"]:  # Full on GDPR blast?
                     await session.database.delete(
                         index=session.database.dbs.db_mbox, id=email["id"],
@@ -64,6 +63,7 @@ async def process(
                         index=session.database.dbs.db_source, id=email["dbid"],
                     )
                 else:  # Standard behavior: hide the email from everyone.
+                    email["deleted"] = True
                     await session.database.update(
                         index=session.database.dbs.db_mbox, body={"doc": email}, id=email["id"],
                     )