fix: retry POP3/IMAP, DNS 8.8.8.8 fallback, debug counter, notification backoff
Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/5ad49738-4b0b-4ed7-8686-07adb0ba9e5d Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
eea50f5d74
commit
92f60c6052
@@ -180,6 +180,11 @@ async def update_mail_account(
|
||||
if password: # Only update when a non-empty password is provided
|
||||
update_data["encrypted_password"] = encrypt_credential(password)
|
||||
|
||||
# When debug logging is (re-)enabled, reset the run counter so the user
|
||||
# always gets exactly 5 debugged runs from the moment they check the box.
|
||||
if update_data.get("debug_logging") is True:
|
||||
update_data["debug_logging_run_count"] = 0
|
||||
|
||||
for field, value in update_data.items():
|
||||
setattr(account, field, value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user