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 2021/12/16 20:01:49 UTC
[incubator-ponymail-foal] branch master updated (e36df0d -> b3069c9)
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git.
from e36df0d Update versions
new 005066b get_email and get_email_irt source argument unused
new b3069c9 Update versions
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
server/plugins/messages.py | 6 ------
server/server_version.py | 2 +-
2 files changed, 1 insertion(+), 7 deletions(-)
[incubator-ponymail-foal] 02/02: Update versions
Posted by se...@apache.org.
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 b3069c99760059a01754bf36bc8dc4c8b6cbd453
Author: Sebb <se...@apache.org>
AuthorDate: Thu Dec 16 20:01:41 2021 +0000
Update versions
---
server/server_version.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/server_version.py b/server/server_version.py
index ed97940..0551ffb 100644
--- a/server/server_version.py
+++ b/server/server_version.py
@@ -1,2 +1,2 @@
# This file is generated by server/update_version.sh
-PONYMAIL_SERVER_VERSION = '2824690'
+PONYMAIL_SERVER_VERSION = '005066b'
[incubator-ponymail-foal] 01/02: get_email and get_email_irt source argument unused
Posted by se...@apache.org.
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 <se...@apache.org>
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(