fix(imap): catch TimeoutError on per-message fetch so sync continues (BIT-33891) #8

Merged
spark merged 1 commits from fix/BIT-33891-imap-timeout into main 2026-12-03 23:31:18 +00:00
1 Commits
Author SHA1 Message Date
Xika 66dcd1f78e fix(imap): catch TimeoutError on per-message fetch so sync continues (BIT-33891)
ci / verify (pull_request) Successful in 26s
TimeoutError (OSError subclass) escaped the imaplib.IMAP4.error handler
in sync_account, killing the entire sync run on a single slow fetch.
Catch OSError alongside IMAP4.error to skip the timed-out message and
continue scanning.

Paperclip-BIT-33891
2026-12-03 23:17:08 +00:00