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 f72ef6864a9f0eda7d8a24c6573271070ebb5fd7 Author: Daniel Gruno <[email protected]> AuthorDate: Mon Sep 7 03:30:27 2020 +0200 this is called permalink now We dont' want to shadow the built-in id command. --- server/endpoints/email.py | 2 +- server/endpoints/source.py | 2 +- server/endpoints/thread.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/endpoints/email.py b/server/endpoints/email.py index c22bca1..f12a4f2 100644 --- a/server/endpoints/email.py +++ b/server/endpoints/email.py @@ -32,7 +32,7 @@ async def process( indata: dict, ) -> dict: - email = await plugins.mbox.get_email(session, id=indata.get("id")) + email = await plugins.mbox.get_email(session, permalink=indata.get("id")) if email and isinstance(email, dict): if plugins.aaa.can_access_email(session, email): # Are we fetching an attachment? diff --git a/server/endpoints/source.py b/server/endpoints/source.py index 46d417c..6164694 100644 --- a/server/endpoints/source.py +++ b/server/endpoints/source.py @@ -30,7 +30,7 @@ async def process( indata: dict, ) -> aiohttp.web.Response: - email = await plugins.mbox.get_email(session, id=indata.get("id")) + email = await plugins.mbox.get_email(session, permalink=indata.get("id")) if email and isinstance(email, dict): if plugins.aaa.can_access_email(session, email): source = await plugins.mbox.get_source(session, permalink=email["mid"]) diff --git a/server/endpoints/thread.py b/server/endpoints/thread.py index 7e14c64..7876857 100644 --- a/server/endpoints/thread.py +++ b/server/endpoints/thread.py @@ -28,7 +28,7 @@ async def process( session: plugins.session.SessionObject, indata: dict, ) -> dict: - email = await plugins.mbox.get_email(session, id=indata.get("id")) + email = await plugins.mbox.get_email(session, permalink=indata.get("id")) if not email: email = await plugins.mbox.get_email(session, messageid=indata.get("id")) if email and isinstance(email, dict):
