I've used fetchmail for years to get email from IMAP inboxes (mainly Exchange server) and never had a single problem with it. Was surprised to see that there are major complaints.
There are also complaints about it being insecure and of low code quality, but those seem to rarely be the main complaint.