mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-09 16:04:41 +00:00
Address review: - The client field was read by commands while ensureConnected could swap it. A lifecycle RWMutex now holds the write lock through dial, auth and assignment, and every command holds the read lock for its duration. Lock order is mu before lifecycle; sentMailbox resolves under mu before AppendToSent takes the read lock. - The virtual-folder name fallback applied to any server, so a plain IMAP account with a real folder called "Important" or "Starred" would have been dropped from sync. It now applies only inside Gmail's own "[Gmail]/" and "[Google Mail]/" namespace; regression cases added.