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 2022/01/04 12:51:08 UTC

[incubator-ponymail-foal] 01/02: Wrong name for list id parameter

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 9875fced979ade27f313d071795682d1d187a553
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jan 4 12:50:30 2022 +0000

    Wrong name for list id parameter
    
    This fixes #204
---
 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 affe4ca..410d5a7 100644
--- a/server/endpoints/email.py
+++ b/server/endpoints/email.py
@@ -33,7 +33,7 @@ async def process(
 ) -> typing.Union[dict, aiohttp.web.Response]:
 
     # Has a list id been provided?
-    listid = indata.get("list", "")
+    listid = indata.get("listid", "")
 
     # lookup by message id must always include a list id for disambiguation
     if listid:
diff --git a/server/endpoints/source.py b/server/endpoints/source.py
index 0b7e24e..f43c7e0 100644
--- a/server/endpoints/source.py
+++ b/server/endpoints/source.py
@@ -29,7 +29,7 @@ async def process(
 ) -> aiohttp.web.Response:
 
     # Has a list id been provided?
-    listid = indata.get("list", "")
+    listid = indata.get("listid", "")
 
     # lookup by message id must always include a list id for disambiguation
     if listid:
diff --git a/server/endpoints/thread.py b/server/endpoints/thread.py
index 6ee9fab..13adf9f 100644
--- a/server/endpoints/thread.py
+++ b/server/endpoints/thread.py
@@ -27,7 +27,7 @@ async def process(
     server: plugins.server.BaseServer, session: plugins.session.SessionObject, indata: dict,
 ) -> typing.Optional[dict]:
     mailid = indata.get("id", "")
-    listid = indata.get("list", "")
+    listid = indata.get("listid", "")
 
     # lookup by message id must always include a list id for disambiguation
     if listid: