Skip to content

Commit

Permalink
Merge branch 'main' into plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrob committed Jul 8, 2024
2 parents 8ebb6a9 + 4e1dfd8 commit 78d70ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion emailproxy.config
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ server_port = 995
local_address = 127.0.0.1

[SMTP-1587]
server_address = smtp.office365.com
server_address = smtp-mail.outlook.com
server_port = 587
server_starttls = True
local_address = 127.0.0.1
Expand Down Expand Up @@ -233,6 +233,14 @@ redirect_uri = http://localhost
client_id = *** your client id here ***
client_secret = *** your client secret here ***

[[email protected]]
permission_url = https://login.microsoftonline.com/common/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/common/oauth2/v2.0/token
oauth2_scope = https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access
redirect_uri = http://localhost
client_id = *** your client id here ***
client_secret = *** your client secret here ***

[[email protected]]
permission_url = https://accounts.google.com/o/oauth2/auth
token_url = https://oauth2.googleapis.com/token
Expand Down
4 changes: 2 additions & 2 deletions emailproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = 'Simon Robinson'
__copyright__ = 'Copyright (c) 2024 Simon Robinson'
__license__ = 'Apache 2.0'
__version__ = '2024-07-04' # ISO 8601 (YYYY-MM-DD)
__version__ = '2024-07-08' # ISO 8601 (YYYY-MM-DD)
__package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only

import abc
Expand Down Expand Up @@ -986,7 +986,7 @@ def start_redirection_receiver_server(token_request):
Log.format_host_port((parsed_uri.hostname, parsed_port)))

class LoggingWSGIRequestHandler(wsgiref.simple_server.WSGIRequestHandler):
# pylint: disable=arguments-differ
# pylint: disable-next=arguments-differ
def log_message(self, _format_string, *args):
Log.debug('Local server auth mode (%s): received authentication response' % Log.format_host_port(
(parsed_uri.hostname, parsed_port)), *args)
Expand Down

0 comments on commit 78d70ee

Please sign in to comment.