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