Skip to content

Commit

Permalink
override apple socket type
Browse files Browse the repository at this point in the history
  • Loading branch information
handisyde committed Feb 26, 2024
1 parent 758af5f commit 73403d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@
* Add mozilla placeholders expansion support in CalDAV/CardDAV outlook autoconfig URLs.
* Add CalDAV/CardDAV support for apple mobileconfig.
* Updated README.md
* Override apple socket type, as for iOS mail.app, STARTTLS == SSL
2 changes: 1 addition & 1 deletion automx2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import logging

IDENTIFIER = 'automx2' # Do not change this!
VERSION = '2024.1'
VERSION = '2024.1.1'

PLACEHOLDER_ADDRESS = r'%EMAILADDRESS%'
PLACEHOLDER_DOMAIN = r'%EMAILDOMAIN%'
Expand Down
2 changes: 2 additions & 0 deletions automx2/generators/apple.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ def _preferred_server(servers: List[Server], type_: str) -> Server:
elif (server.socket_type not in encrypted) and (s.socket_type in encrypted):
# Server uses one of the preferred socket types while the candidate does not.
server = s
if server.socket_type == "STARTTLS":
server.socket_type = "SSL"
return server


Expand Down

0 comments on commit 73403d1

Please sign in to comment.