mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Fix addresses in front
This commit is contained in:
parent
4c25c83419
commit
0ce0b5ec02
@ -80,12 +80,12 @@ def extract_host_port(host_and_port, default_port):
|
||||
|
||||
def get_server(protocol, authenticated=False):
|
||||
if protocol == "imap":
|
||||
hostname, port = extract_host_port(app.config['HOST_IMAP'], 143)
|
||||
hostname, port = extract_host_port(app.config['IMAP_ADDRESS'], 143)
|
||||
elif protocol == "pop3":
|
||||
hostname, port = extract_host_port(app.config['HOST_POP3'], 110)
|
||||
hostname, port = extract_host_port(app.config['POP3_ADDRESS'], 110)
|
||||
elif protocol == "smtp":
|
||||
if authenticated:
|
||||
hostname, port = extract_host_port(app.config['HOST_AUTHSMTP'], 10025)
|
||||
hostname, port = extract_host_port(app.config['AUTHSMTP_ADDRESS'], 10025)
|
||||
else:
|
||||
hostname, port = extract_host_port(app.config['HOST_SMTP'], 25)
|
||||
hostname, port = extract_host_port(app.config['SMTP_ADDRESS'], 25)
|
||||
return hostname, port
|
||||
|
Loading…
Reference in New Issue
Block a user