Thanks for this Information it works. However it seems when I want to connect the IMAP server it still gives me an error:
Error: Can't open mailbox {/novalidate-cert}: invalid remote specification
I have seen on google thath this is common when the script tries to add the / to novalidate-cert...