simonrob / email-oauth2-proxy

An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
Apache License 2.0
797 stars 86 forks source link

allow importing as a script without GUI requirements installed #201

Closed terencehonles closed 10 months ago

terencehonles commented 11 months ago

This change updates the script initialization to not fail on import errors, to finish without checking if --no-gui or --external-auth has been passed in the command-line, and instead raises an error when the application is initializing if running in GUI mode and the requirements are not met.

Minor changes also included:

terencehonles commented 11 months ago

This will also allow packaging without all the requirements and this check https://github.com/simonrob/email-oauth2-proxy/pull/199/files#diff-8068eda2feddbc61595ced559aa73f8502813cf5cb1190a21e111ab1e8d19e88R71