Firstly, both posts seem to about the same question. So, I think it's better to edit the first post instead of making a new one that will ask (with other words or not) the same things.
About the first question
The first question asks for a way to get mail, but something very important is missing. If mail servers don't have an API, it's because there is already an API. Protocols IMAP and SMTP let you manage mails.
If you search for "get iCloud mail from Python" in Google, you will see (with your post with all titles it had over the time) post like this that never use the iCloud API, but even success to do what they want with the SMTP protocol. In your case, it's the same behavior, but with IMAP, as explained here.
About the second question
While the first one could be focused, this one has a clear issue: It's opinion-based. Here, you didn't make any search, and just ask for explanation, or "best approach" which are most of the case asking about opinion.
This question could be replace by a quick search with s lot of articles as those one.
Conclusion
Creating the second question was not a good idea. Edit the first after some research was the good idea, and could lead to an answer. Actually, they are just two-line questions which seems too broad.