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 005066bac4ca0cd3dda2d0c661ad162fe2240bcc Author: Sebb <[email protected]> AuthorDate: Thu Dec 16 20:01:24 2021 +0000 get_email and get_email_irt source argument unused This fixes #185 --- server/plugins/messages.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/plugins/messages.py b/server/plugins/messages.py index 46fd0f1..7d8ea1a 100644 --- a/server/plugins/messages.py +++ b/server/plugins/messages.py @@ -216,7 +216,6 @@ async def get_email( session: plugins.session.SessionObject, permalink: str = None, messageid: str = None, - source: bool = False, ) -> typing.Optional[dict]: """ Returns a matching mbox or source document or None @@ -224,8 +223,6 @@ async def get_email( """ assert session.database, DATABASE_NOT_CONNECTED doctype = session.database.dbs.db_mbox - if source: - doctype = session.database.dbs.db_source # Older indexes may need a match instead of a strict terms agg in order to find # emails in DBs that may have been incorrectly analyzed. aggtype = "match" @@ -273,7 +270,6 @@ async def get_email( async def get_email_irt( session: plugins.session.SessionObject, irt: str, - source: bool = False, ) -> typing.List[dict]: """ Returns a list of mbox or source document(s) that are related. May be empty. @@ -281,8 +277,6 @@ async def get_email_irt( """ assert session.database, DATABASE_NOT_CONNECTED doctype = session.database.dbs.db_mbox - if source: - doctype = session.database.dbs.db_source xirt = '"%s"' % irt.replace('"', '\\"') res = await session.database.search(
