From 894b129acbd5e460f063890f05f3490c258de819 Mon Sep 17 00:00:00 2001 From: Otthorn Date: Sat, 8 Dec 2018 17:41:42 +0100 Subject: [PATCH 1/2] Minuscule pour la redirection des mail --- templates/list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/list b/templates/list index 356f9a6..76788cf 100644 --- a/templates/list +++ b/templates/list @@ -4,9 +4,9 @@ {% for user in data -%} {%- for alias in user.email_address -%} {%- if user.local_email_redirect -%} -{{ alias.local_part }}:{{ user.email }} +{{ alias.local_part }}:{{ user.email|lower }} {%- else -%} -{{ alias.local_part }}:{{ alias.user }} +{{ alias.local_part }}:{{ alias.user|lower }} {% endif %} {%- endfor -%} {%- endfor -%} From c89d3ad1d249a9de9d0102ff4d1ef6f466cc30ea Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Sat, 13 Jun 2020 13:45:01 +0200 Subject: [PATCH 2/2] I need TLS --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6a7d7a3..eb9d644 100755 --- a/main.py +++ b/main.py @@ -21,8 +21,12 @@ 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=False) +api_client = Re2oAPIClient(api_hostname, api_username, api_password, use_tls=use_tls) client_hostname = socket.gethostname().split('.', 1)[0]