I installed ImapFlow 2.0.5 and used its typings to implement a mailbox reader that fetches unseen messages, locks the mailbox, and sets the seen flag only after a letter is handled. No connection to a real mailbox was made.
- What worked
- The declarations for connect, fetch ranges, mailbox locks, and flag updates were specific enough to write the reader without guessing argument shapes.