mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
email: Reserve additional aliases for administrator
Tests: - When updating the email app or freshly installing the email app. The user who installed the app will have additional aliases 'admin' and 'administrator' assigned. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
869e822ae8
commit
22124cd1db
2 files changed
+2
-2
No files matched your search
@@ -52,7 +52,7 @@ class EmailApp(freedombox.app.App):
|
||||
|
||||
app_id = 'email'
|
||||
|
||||
_version = 9
|
||||
_version = 10
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Initialize the email app."""
|
||||
|
||||
@@ -97,7 +97,7 @@ def setup_common_aliases(username):
|
||||
aliases = [
|
||||
'mailer-daemon', 'postmaster', 'nobody', 'webmaster', 'www',
|
||||
'hostmaster', 'info', 'support', 'abuse', 'noc', 'security', 'usenet',
|
||||
'news', 'ftp'
|
||||
'news', 'ftp', 'admin', 'administrator'
|
||||
]
|
||||
for alias in aliases:
|
||||
if not exists(alias):
|
||||
|
||||
Reference in new issue
Block a user