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/06/04 20:58:46 UTC

[incubator-ponymail-foal] branch master updated: Upper case for constant

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


The following commit(s) were added to refs/heads/master by this push:
     new d38ea9f  Upper case for constant
d38ea9f is described below

commit d38ea9fe40780048224b9445b7c40ddd7f168246
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jun 4 21:58:33 2021 +0100

    Upper case for constant
---
 server/plugins/messages.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/plugins/messages.py b/server/plugins/messages.py
index 2a40387..2319602 100644
--- a/server/plugins/messages.py
+++ b/server/plugins/messages.py
@@ -42,7 +42,7 @@ DATABASE_NOT_CONNECTED = "Database not connected!"
 
 mbox_cache_privacy: typing.Dict[str, bool] = {}
 
-used_ui_fields = [
+USED_UI_FIELDS = [
     "private",
     "list",
     "list_raw",
@@ -67,7 +67,7 @@ def trim_email(doc, external=False):
             del doc[header]
 
         # Remove other fields not used by the UI, if for external consumption
-        elif external and header not in used_ui_fields:
+        elif external and header not in USED_UI_FIELDS:
             del doc[header]