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 49b8545d444eb89ad1694283bb938581ecd91582 Author: Sebb <[email protected]> AuthorDate: Wed Dec 29 01:06:43 2021 +0000 There must be a dbid field; don't fallback to mid Does not make sense to fallback to mid, because source docs are linked by dbid. c.f. source.py and mgmt.py which use dbid with no fallback --- server/endpoints/mbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py index 27dd2dc..01c1e98 100644 --- a/server/endpoints/mbox.py +++ b/server/endpoints/mbox.py @@ -34,7 +34,7 @@ import datetime async def convert_source(session: plugins.session.SessionObject, email: dict) -> str: - source = await plugins.messages.get_source(session, permalink=email.get("dbid", email["mid"])) + source = await plugins.messages.get_source(session, permalink=email.get("dbid")) if source: source_as_text = source["_source"]["source"] # Ensure it starts with "From "...or fake it
