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/29 01:42:47 UTC
[incubator-ponymail-foal] branch master updated (39b1a90 -> ef12947)
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 39b1a90 Update server version
new f3cbd7c get_source does not need fetch by Permalink
new ef12947 Server version
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 | 10 ----------
server/server_version.py | 2 +-
2 files changed, 1 insertion(+), 11 deletions(-)
[incubator-ponymail-foal] 01/02: get_source does not need fetch by Permalink
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 f3cbd7c8173fac47bdf976246a991ed84c2d211c
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 29 01:39:38 2021 +0000
get_source does not need fetch by Permalink
This fixes #201
---
server/plugins/messages.py | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index bbce740..50ae7c0 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -305,7 +305,6 @@ async def get_email_irt(
async def get_source(session: plugins.session.SessionObject, permalink: str = None, raw=False):
"""
Get the source document for an email, or None if it does not find exactly one match.
- If the source cannot be found using the id, it checks for a match by Permalink.
The caller must check if access is allowed.
"""
@@ -315,15 +314,6 @@ async def get_source(session: plugins.session.SessionObject, permalink: str = No
doc = await session.database.get(index=doctype, id=permalink)
except plugins.database.DBError:
doc = None
- if not doc:
- res = await session.database.search(
- index=doctype,
- size=1,
- body={"query": {"bool": {"must": [{"match": {"permalink": permalink}}]}}},
- )
- if len(res["hits"]["hits"]) == 1:
- doc = res["hits"]["hits"][0]
- doc["id"] = doc["_id"]
if doc:
if raw:
return doc
[incubator-ponymail-foal] 02/02: Server version
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 ef129474f1fbb839a653b03231227705aafaec3c
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 29 01:40:59 2021 +0000
Server version
---
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 99eaa4e..cabbadd 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 = '49b8545'
+PONYMAIL_SERVER_VERSION = 'f3cbd7c'