Quality IMAP, Part 1: Your Mailbox Is A Database
Summary
The Aerogramme blog post analyzes IMAP correctness, focusing on implementing reliable FETCH and SEARCH, and argues that a mailbox behaves like a database. It details the architecture (interpreter for queries, eml-codec for parsing, metadata storage with Garage K2V/S3), testing with ImapTest and fuzzing, and lessons on handling real-world and edge-case email syntax, plus future improvements and concurrency challenges.