mail intake: stop deadlocking on batches larger than the FETCH buffer #1
Loading…
Reference in a new issue
No description provided.
Delete branch "mail-intake-fetch-deadlock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pollMailboxissuedSTORE \Seenper message from inside the streaming FETCH loop; go-imap v1's single reader can't deliver that STORE's response until all FETCH results are pushed into the 20-slot channel — any batch > 20 deadlocked untiltimeout 5m. With billing's 336-message backlog every run wedged and no identity has received mail steers for 12+ hours. Fix: single STORE after the FETCH completes; regression test with go-imap's memory server (25 msgs) hangs on old code, passes now.🤖 Generated with Claude Code