I just did this and paired it with ChatGPT to send me a Discord message like "You received mail from Progressive."
Seems silly and lazy but it was a fun afternoon project
(boring aside: USPS seems to have bespoke anti-bot measures which uses WASM to sign requests, which means you have to use full browser automation to login. Of course, most people instead parse the daily emails they send you which is a totally reasonable approach as well.)