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 2022/01/29 17:17:54 UTC
[incubator-ponymail-foal] branch master updated (2ae21f2 -> a048109)
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 2ae21f2 Bump server version
new dc45873 Simplify: checking is done in messages plugin
new a048109 Bump 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/endpoints/source.py | 13 ++++++-------
server/server_version.py | 2 +-
2 files changed, 7 insertions(+), 8 deletions(-)
[incubator-ponymail-foal] 01/02: Simplify: checking is done in messages plugin
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 dc45873a31019b217ecfb108ccba2bfe25f2a1b4
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jan 29 17:17:37 2022 +0000
Simplify: checking is done in messages plugin
---
server/endpoints/source.py | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/server/endpoints/source.py b/server/endpoints/source.py
index 927107d..afd9d56 100644
--- a/server/endpoints/source.py
+++ b/server/endpoints/source.py
@@ -37,13 +37,12 @@ async def process(
else: # Else assume permalink and look up the email based on that
email = await plugins.messages.get_email(session, permalink=indata.get("id"))
- if email and isinstance(email, dict) and not email.get("deleted"):
- if plugins.aaa.can_access_email(session, email):
- source = await plugins.messages.get_source(session, permalink=email["dbid"])
- if source:
- return aiohttp.web.Response(
- headers={"Content-Type": "text/plain"}, status=200, text=source["_source"]["source"],
- )
+ if email:
+ source = await plugins.messages.get_source(session, permalink=email["dbid"])
+ if source:
+ return aiohttp.web.Response(
+ headers={"Content-Type": "text/plain"}, status=200, text=source["_source"]["source"],
+ )
return aiohttp.web.Response(headers={}, status=404, text="Email not found")
[incubator-ponymail-foal] 02/02: Bump 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 a04810984310cb52a193c31da5687bc308b9999e
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jan 29 17:17:47 2022 +0000
Bump 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 2ceedf7..d28283f 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 = '319e5db'
+PONYMAIL_SERVER_VERSION = 'dc45873'