Hydroxide is a third-party, open-source ProtonMail bridge. 
It provides CardDAV, IMAP and SMTP.
