Module: tools Branch: master Commit: 9f5f8f5dc3044b855adc54e05169dcc545bf8840 URL: https://source.winehq.org/git/tools.git/?a=commit;h=9f5f8f5dc3044b855adc54e0... Author: Jeremy White <jwhite(a)codeweavers.com> Date: Tue Apr 26 15:24:36 2022 -0500 Remove the CUSTOM_HEADERS option. We're not using it, and it is not worth getting configParser to support it. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- gitlab/gitlab-to-mail/example.cfg | 3 --- gitlab/gitlab-to-mail/gitlabtomail.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/gitlab/gitlab-to-mail/example.cfg b/gitlab/gitlab-to-mail/example.cfg index 3cd31d9..19e877c 100644 --- a/gitlab/gitlab-to-mail/example.cfg +++ b/gitlab/gitlab-to-mail/example.cfg @@ -27,9 +27,6 @@ SMTP_PORT = 587 #SMTP_USER = "login" #SMTP_PASSWORD = "pass" -# can be used for mailman's 'Approved' header -CUSTOM_HEADERS = { } - # When run for the first time, how far back in time should we look for # merge requests and related events INITIAL_BACKLOG_DAYS = 5 diff --git a/gitlab/gitlab-to-mail/gitlabtomail.py b/gitlab/gitlab-to-mail/gitlabtomail.py index 0a5ef4b..2dfc72a 100755 --- a/gitlab/gitlab-to-mail/gitlabtomail.py +++ b/gitlab/gitlab-to-mail/gitlabtomail.py @@ -45,9 +45,6 @@ def send_email(message): message['Reply-To'] = settings.BRIDGE_FROM_EMAIL message['To'] = settings.BRIDGE_TO_EMAIL - for k, v in settings.CUSTOM_HEADERS.items(): - message[k] = v - encoded_message = message.as_string().encode('utf-8') if settings.DEBUG: