Quality IMAP, Part 1: Your Mailbox Is A Database
Aerogramme’s developers explain why implementing correct IMAP retrieval resembles building a database query engine: clients request fine-grained parts of complex messages, while specifications and real implementations don’t always agree.
The article describes their work on correctness and testing. In the discussion, the author confirmed Aerogramme uses imap-codec; readers also explored shared cross-implementation test corpora and the difficulty of generating realistic email inputs.