python-mailcow
python-mailcow copied to clipboard
Read ssl_verify and timeout values from the config file
Currently, ssl_verify and timeout are being read only from the globals constants. Read them from the config file, using globals if the config file does not include the setting.
When reading ssl_verify from the config file, treat the case-insensitive values "false", "no" and "f" as False; treat all other values as True.
When reading timeout from the config file, assume Integer values.
When using ssl_verify = False, suppress warnings about self-signed (or otherwise untrusted or invalid certificates) when connecting.