Build a tool in this working folder that finds a one-time code in a mailbox: it takes the six-digit code from the newest mail of one given sender.
Test it on a folder of made-up sample mail that you create yourself: two mails from the same sender with different codes and dates, and one mail from another sender that also contains a six-digit number.
It only reads mail, and it never uses a code from another sender. If there is no code, it says so clearly. No real account, no password anywhere.
Show me how I check it: it gives the newest code, says "no code found" for a sender without mail, and rejects a lookalike sender.
