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:14:17 UTC
[incubator-ponymail-foal] branch master updated (fd5f490 -> 2ae21f2)
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 fd5f490 Tests of management interface
new 319e5db Simplify calling structure
new 2ae21f2 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/mbox.py | 6 +++---
server/server_version.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
[incubator-ponymail-foal] 01/02: Simplify calling structure
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 319e5dbac1840c772690c714494aae3074663264
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jan 29 17:13:28 2022 +0000
Simplify calling structure
---
server/endpoints/mbox.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py
index 01c1e98..fa249d8 100644
--- a/server/endpoints/mbox.py
+++ b/server/endpoints/mbox.py
@@ -33,8 +33,7 @@ import email.utils as eutils
import datetime
-async def convert_source(session: plugins.session.SessionObject, email: dict) -> str:
- source = await plugins.messages.get_source(session, permalink=email.get("dbid"))
+def convert_source(source) -> str:
if source:
source_as_text = source["_source"]["source"]
# Ensure it starts with "From "...or fake it
@@ -110,7 +109,8 @@ async def process(
epoch_order="asc"
):
for email in emails:
- mboxrd_source = await convert_source(session, email)
+ source = await plugins.messages.get_source(session, permalink=email.get("dbid"))
+ mboxrd_source = convert_source(source)
# Ensure each non-empty source ends with a blank line
if not mboxrd_source.endswith("\n\n"):
mboxrd_source += "\n"
[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 2ae21f2ad7959341cc79dcd89386b180912b8644
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jan 29 17:13: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 e12232b..2ceedf7 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 = '8d957f7'
+PONYMAIL_SERVER_VERSION = '319e5db'