Compare commits
No commits in common. "master" and "crans" have entirely different histories.
2 changed files with 3 additions and 8 deletions
6
main.py
6
main.py
|
@ -21,12 +21,8 @@ config.read(path+'/config.ini')
|
||||||
api_hostname = config.get('Re2o', 'hostname')
|
api_hostname = config.get('Re2o', 'hostname')
|
||||||
api_password = config.get('Re2o', 'password')
|
api_password = config.get('Re2o', 'password')
|
||||||
api_username = config.get('Re2o', 'username')
|
api_username = config.get('Re2o', 'username')
|
||||||
if 'use_tls' in config['Re2o']:
|
|
||||||
use_tls = config.get('Re2o', 'use_tls')
|
|
||||||
else:
|
|
||||||
us_tls = False
|
|
||||||
|
|
||||||
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=use_tls)
|
api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=False)
|
||||||
|
|
||||||
client_hostname = socket.gethostname().split('.', 1)[0]
|
client_hostname = socket.gethostname().split('.', 1)[0]
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,8 @@
|
||||||
{% for user in data -%}
|
{% for user in data -%}
|
||||||
{%- for alias in user.email_address -%}
|
{%- for alias in user.email_address -%}
|
||||||
{%- if user.local_email_redirect -%}
|
{%- if user.local_email_redirect -%}
|
||||||
{{ alias.local_part }}:{{ user.email|lower }}
|
{% else %}
|
||||||
{%- else -%}
|
{{ alias.local_part }}:{{ alias.user }}
|
||||||
{{ alias.local_part }}:{{ alias.user|lower }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue