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 2021/05/07 17:17:04 UTC
[incubator-ponymail-foal] branch master updated: Use dbid instead
of mid to get source
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
The following commit(s) were added to refs/heads/master by this push:
new 6e56e9a Use dbid instead of mid to get source
new 61fd008 Merge pull request #21 from sbp/source-use-dbid
6e56e9a is described below
commit 6e56e9a6fdfa509adf3471bd6fb04f83b3f33cf4
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Fri May 7 18:06:09 2021 +0100
Use dbid instead of mid to get source
---
server/endpoints/source.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/endpoints/source.py b/server/endpoints/source.py
index 4050863..9f6a736 100644
--- a/server/endpoints/source.py
+++ b/server/endpoints/source.py
@@ -36,7 +36,7 @@ async def process(
if email and isinstance(email, dict) and not email.get("deleted"):
if plugins.aaa.can_access_email(session, email):
- source = await plugins.mbox.get_source(session, permalink=email["mid"])
+ source = await plugins.mbox.get_source(session, permalink=email["dbid"])
if source and not source["_source"].get("deleted"):
return aiohttp.web.Response(
headers={"Content-Type": "text/plain"}, status=200, text=source["_source"]["source"],