I think I found out the error, but don't know how to solve it.
For some accounts it is working and for some it isn't. The error I am getting is:
From Folder "INBOX.mailboxlist" : Could not select 20 NO Mailbox does not exist, or must be subscribed to
How do I subscribe to the mailboxlist?