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/12 00:21:06 UTC

[incubator-ponymail-foal] branch master updated (c22d4f3 -> 1b88aa2)

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 c22d4f3  Merge branch 'master' of github.com:apache/incubator-ponymail-foal
     new e080f7f  Assume email is private unless otherwise notified
     new 1b88aa2  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/mgmt.py | 2 +-
 server/plugins/aaa.py    | 2 +-
 server/server_version.py | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

[incubator-ponymail-foal] 01/02: Assume email is private unless otherwise notified

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 e080f7f7a62f35c8b95e934beeb0ee52dd6099f3
Author: Sebb <se...@apache.org>
AuthorDate: Sun Dec 12 00:18:59 2021 +0000

    Assume email is private unless otherwise notified
    
    This relates to #173
---
 server/endpoints/mgmt.py | 2 +-
 server/plugins/aaa.py    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index 062347a..6ac0d67 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -128,7 +128,7 @@ async def process(
         new_from = indata.get("from")
         new_subject = indata.get("subject")
         new_list = indata.get("list", "")
-        private = indata.get("private", "no") == "yes"
+        private = indata.get("private", "yes") == "yes" # Assume private unless notified otherwise
         new_body = indata.get("body", "")
         attach_edit = indata.get("attachments", None)
 
diff --git a/server/plugins/aaa.py b/server/plugins/aaa.py
index 07ee695..789901c 100644
--- a/server/plugins/aaa.py
+++ b/server/plugins/aaa.py
@@ -26,7 +26,7 @@ import plugins.session
 def can_access_email(session: plugins.session.SessionObject, email) -> bool:
     """Determine if an email can be accessed by the current user"""
     # If public email, it can always be accessed
-    if not email.get("private"):
+    if not email.get("private", True): # Assume private if the flag is missing
         return True
     # If user can access the list, they can read the email
     return can_access_list(session, email.get("list_raw"))

[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 1b88aa2e81172ecabf53b1e9cd6017b25d989126
Author: Sebb <se...@apache.org>
AuthorDate: Sun Dec 12 00:20:57 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 8250e8c..4496987 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 = '16b2631'
+PONYMAIL_SERVER_VERSION = 'e080f7f'