Quality IMAP, Part 2: Mailbox Concurrency
Aerogramme’s developers explain how they test mailbox consistency across a distributed IMAP server backed by Garage, whose design avoids distributed locks and transactions. Concurrent message insertion can require UID renumbering, so their test checks that UIDVALIDITY never goes backwards across nodes.
The tests exposed synchronization bugs beyond IMAP itself. The article also describes the limitations of its current CONDSTORE and QRESYNC support.