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:07:07 UTC

[incubator-ponymail-foal] branch master updated (fb1e70e -> 39b1a90)

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 fb1e70e  Update server version
     new 49b8545  There must be a dbid field; don't fallback to mid
     new 39b1a90  Update 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 | 2 +-
 server/server_version.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

[incubator-ponymail-foal] 02/02: Update 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 39b1a9014f0df52449034bd3dd07570371a8899e
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 29 01:06:56 2021 +0000

    Update 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 82ed437..99eaa4e 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 = '800c62e'
+PONYMAIL_SERVER_VERSION = '49b8545'

[incubator-ponymail-foal] 01/02: There must be a dbid field; don't fallback to mid

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 49b8545d444eb89ad1694283bb938581ecd91582
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 29 01:06:43 2021 +0000

    There must be a dbid field; don't fallback to mid
    
    Does not make sense to fallback to mid, because source docs
    are linked by dbid.
    c.f. source.py and mgmt.py which use dbid with no fallback
---
 server/endpoints/mbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/endpoints/mbox.py b/server/endpoints/mbox.py
index 27dd2dc..01c1e98 100644
--- a/server/endpoints/mbox.py
+++ b/server/endpoints/mbox.py
@@ -34,7 +34,7 @@ import datetime
 
 
 async def convert_source(session: plugins.session.SessionObject, email: dict) -> str:
-    source = await plugins.messages.get_source(session, permalink=email.get("dbid", email["mid"]))
+    source = await plugins.messages.get_source(session, permalink=email.get("dbid"))
     if source:
         source_as_text = source["_source"]["source"]
         # Ensure it starts with "From "...or fake it