CZ-NIC / envelope

Insert a message and attachments and send e-mail / sign / encrypt contents by a single line.
Other
171 stars 12 forks source link

Disable validate_email module blacklist updater #17

Closed hege-li closed 2 years ago

hege-li commented 2 years ago

As reported on py3-validate-email issue tracker: https://gitea.ksol.io/karolyi/py3-validate-email/issues/85

Envelope-module is not using validate_email's blacklisting features, so could you please disable the internal updating feature by default, with something like this, before "import validate_email":

from os import environ
environ['PY3VE_IGNORE_UPDATER'] = '1'

This results in more safer operation and prevents possible exceptions in case of network errors from the updater.

The environment variable works since py3-validate-email 1.0.5, but as it's just an envvar, it's safe to define regardless of version.

e3rd commented 2 years ago

Thanks for that! :)