diff --git a/optional/fetchmail/fetchmail.py b/optional/fetchmail/fetchmail.py index 539610a6..51cf0c73 100755 --- a/optional/fetchmail/fetchmail.py +++ b/optional/fetchmail/fetchmail.py @@ -66,7 +66,7 @@ def run(debug): for fetch in fetches: fetchmailrc = "" options = "options antispam 501, 504, 550, 553, 554" - if "OPTIONS" in os.environ: options += f' {os.environ['OPTIONS']}' + if "OPTIONS" in os.environ: options += f' {os.environ["OPTIONS"]}' options += " ssl" if fetch["tls"] else "" options += " keep" if fetch["keep"] else " fetchall" folders = f"folders {",".join(f'"{imaputf7encode(item).replace('"',r"\34")}"' for item in fetch["folders"]) or '"INBOX"'}"