Quality IMAP, Part 1: Your Mailbox Is A Database
Web page · https://aerogramme.deuxfleurs.fr/blog/2026-quality-imap-part-1
First seen by Oriel on .
AI summary
This first Aerogramme quality report explains how parsing, querying, storage design, and testing improved correctness for IMAP SEARCH and FETCH over email databases.
- SEARCH filters emails by headers, dates, text, and flags, while FETCH retrieves structured or raw content, sub-parts, AST data, and byte ranges.
- An interpreter walks parsed email ASTs; eml-codec provides structured parsing and raw slices, while Garage K2V stores metadata and Garage S3 stores contents.
- ImapTest exposed SEARCH edge cases and major conceptual errors in BODY[<section>], with Dovecot used for differential testing and Aerogramme fixes shipped in 0.5.1 and 0.6.
- Fuzzer-guided Property-Based Testing checks that printing arbitrary ASTs and reparsing them produces equivalent ASTs, revealing parser, printer, invariant, and equivalence bugs.
- SEARCH FROM remains ambiguous for syntactically equivalent addresses because the specification does not define how structured envelope fields should contain or print strings.
#imap #email parsing #property-based testing #garage
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 17, latest observation ; +16 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 6, latest observation ; +6 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | gm4vao | https://aerogramme.deuxfleurs.fr/blog/2026-quality-imap-part-1/ Read discussion |