in reply to finding unread emails in IMAP maildir
I've had good experience with Mail::IMAPClient, but that only speaks IMAP, not maildir or other mail storage formats.