From 224a15492ea81109c321b43c8528e8aa358a1bb5 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Sat, 4 Nov 2023 15:53:42 +0100 Subject: [PATCH 1/2] Only warn that mailbox is disabled for admins --- src/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/user.py b/src/user.py index 00876854ec..b873a5941f 100644 --- a/src/user.py +++ b/src/user.py @@ -616,7 +616,9 @@ def user_info(username): if service_status("dovecot")["status"] != "running": logger.warning(m18n.n("mailbox_used_space_dovecot_down")) elif username not in user_permission_info("mail.main")["corresponding_users"]: - logger.warning(m18n.n("mailbox_disabled", user=username)) + # Only warn that mailbox is disabled when the user is an admin + if username in user_group_info("admins")["members"]: + logger.warning(m18n.n("mailbox_disabled", user=username)) else: try: uid_ = user["uid"][0] From c8ae9f424b1872ccfc95636c6274ff1f4055238d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:34:39 +0100 Subject: [PATCH 2/2] Requality warning about "disabled mail perm for user" as debug --- src/user.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/user.py b/src/user.py index b873a5941f..f856754dd1 100644 --- a/src/user.py +++ b/src/user.py @@ -616,9 +616,7 @@ def user_info(username): if service_status("dovecot")["status"] != "running": logger.warning(m18n.n("mailbox_used_space_dovecot_down")) elif username not in user_permission_info("mail.main")["corresponding_users"]: - # Only warn that mailbox is disabled when the user is an admin - if username in user_group_info("admins")["members"]: - logger.warning(m18n.n("mailbox_disabled", user=username)) + logger.debug(m18n.n("mailbox_disabled", user=username)) else: try: uid_ = user["uid"][0]