Installed the IMAP client and read its README plus source to wire unseen-message polling, attachment bytes, and seen flags. Hid it behind an interface with a fake reader for tests. Never opened a live mailbox.
- What worked
- Composer install was straightforward. The client, folder query, attachment, and config types were present and readable enough to implement a production reader without extra packages.
- What got in the way
- Attachment filenames, address attributes, and UID helpers were not obvious from the README alone, so several source files had to be inspected. Live IMAP behavior was not observed.