Update fetchmail.py

This commit is contained in:
DaCHack
2025-08-30 23:15:27 +02:00
committed by GitHub
parent 32ac61f1f8
commit e83bc1c41c

View File

@@ -67,7 +67,7 @@ def run(debug):
fetchmailrc = ""
options = "options antispam 501, 504, 550, 553, 554"
if "FETCHMAIL_OPTIONS" in os.environ: options += f' {os.environ["FETCHMAIL_OPTIONS"]}'
options += " ssl" if fetch["tls"] else ""
options += " ssl" if fetch["tls"] else " sslproto \'\'"
options += " keep" if fetch["keep"] else " fetchall"
options += " invisible" if fetch["invisible"] else ""
folders = f"folders {",".join(f'"{imaputf7encode(item).replace('"',r"\34")}"' for item in fetch["folders"]) or '"INBOX"'}"