Compare commits

..

No commits in common. "master" and "crans" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View file

@ -21,12 +21,8 @@ config.read(path+'/config.ini')
api_hostname = config.get('Re2o', 'hostname')
api_password = config.get('Re2o', 'password')
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]

View file

@ -4,9 +4,8 @@
{% for user in data -%}
{%- for alias in user.email_address -%}
{%- if user.local_email_redirect -%}
{{ alias.local_part }}:{{ user.email|lower }}
{%- else -%}
{{ alias.local_part }}:{{ alias.user|lower }}
{% else %}
{{ alias.local_part }}:{{ alias.user }}
{% endif %}
{%- endfor -%}
{%- endfor -%}