mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
email: Address some code review comments
- __init__.py: Changed email server description - audit module: Added module docstring - email_server action: - Used argparse - Replaced "wrapper functions" with a getattr based lookup method
This commit is contained in:
1 parent
81c9632f5a
commit
758c8791f1
4 files changed
+28
-21
No files matched your search
@@ -33,7 +33,7 @@ class EmailServerApp(plinth.app.App):
|
||||
app_id=self.app_id,
|
||||
version=version,
|
||||
name=_('Email Server'),
|
||||
short_description=_('An email server for FreedomBox'),
|
||||
short_description=_('Powered by Postfix, Dovecot & Rspamd'),
|
||||
manual_page='EmailServer',
|
||||
clients=manifest.clients,
|
||||
donation_url='https://freedomboxfoundation.org/donate/'
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
"""
|
||||
Provides diagnosis and repair of email server configuration issues
|
||||
"""
|
||||
|
||||
from . import ldap
|
||||
from . import domain
|
||||
|
||||
|
||||
@@ -64,13 +64,11 @@ def repair():
|
||||
POST /audit/ldap/repair
|
||||
"""
|
||||
logger.debug('Updating postconf: %r', default_config)
|
||||
actions.superuser_run('email_server', ['ipc', 'set_sasl'])
|
||||
actions.superuser_run('email_server', ['ipc', 'ldap', 'set_sasl'])
|
||||
|
||||
logger.debug('Setting up postfix %s service in master.cf: %r',
|
||||
submission_flags.service, default_submission_options)
|
||||
logger.debug('And postfix %s service: %r', smtps_flags.service,
|
||||
default_smtps_options)
|
||||
actions.superuser_run('email_server', ['ipc', 'set_submission'])
|
||||
logger.debug('Setting up postfix services:\n %r\n %r',
|
||||
default_submission_options, default_smtps_options)
|
||||
actions.superuser_run('email_server', ['ipc', 'ldap', 'set_submission'])
|
||||
|
||||
|
||||
def action_set_sasl():
|
||||
|
||||
Reference in new issue
Block a user