Good Day
I use a php function on my pc to list and read the mail from all my email accounts without having to go to the individual accounts. Adapting it to suit your needs should be pretty straightforward. I have allowed 3 days so I can write it up, you can test it, and I can make any changes/improvements you might require.
If you have any questions please do not hesitate to contact me without obligation.
Thank you.