1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

as per review

Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
(cherry picked from commit d70e82765f)
This commit is contained in:
Florent Daigniere
2024-09-07 12:57:42 +02:00
committed by Mergify
parent 3473d9db20
commit e441539f20

View File

@@ -70,7 +70,7 @@ def run(debug):
options = "options antispam 501, 504, 550, 553, 554"
options += " ssl" if fetch["tls"] else ""
options += " keep" if fetch["keep"] else " fetchall"
folders = "folders %s" % ((','.join('"' + imaputf7encode(item) + '"' for item in fetch['folders'])) if fetch['folders'] else '"INBOX"')
folders = f"folders {",".join(f'"{imaputf7encode(item).replace('"',r"\34")}"' for item in fetch["folders"]) or '"INBOX"'}"
fetchmailrc += RC_LINE.format(
user_email=escape_rc_string(fetch["user_email"]),
protocol=fetch["protocol"],