Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
email-mirror-postfix: Use get_config_bool, instead of checking "true".
Alex Vandivere0cf82a526c3
diff --git a/scripts/lib/email-mirror-postfix b/scripts/lib/email-mirror-postfixindex 6870ebdfc6c..8ccb9b991b2 100755--- a/scripts/lib/email-mirror-postfix+++ b/scripts/lib/email-mirror-postfix@@ -54,7 +54,7 @@ from urllib.parse import urlencode, urljoin, urlsplitfrom urllib.request import Request, urlopensys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))-from scripts.lib.zulip_tools import get_config, get_config_file+from scripts.lib.zulip_tools import get_config_bool, get_config_fileparser = argparse.ArgumentParser()@@ -133,8 +133,7 @@ def send_email_mirror(if not urlsplit(host).scheme:config_file = get_config_file()- http_only_config = get_config(config_file, "application_server", "http_only", "")- http_only = http_only_config == "true"+ http_only = get_config_bool(config_file, "application_server", "http_only", False)scheme = "http://" if http_only else "https://"host = scheme + host