HaskellNet seems to be the only available IMAP client library for Haskell, but it doesn't seem to support TLS connections, which is necessary for accessing Gmail's IMAP servers. Are there any alternative Haskell libraries or workarounds?
Check out imapget on hackage. It gets around this limitation by creating a proxy port.
Sorry to dredge up quite an old post here, but I came across this thread when I had the same issue a while back, and have since written a library which adds SSL/TLS support to HaskellNet. It makes use of another library, connection, which I don't think existed at the time this question was originally posted, and which made adding TLS support significantly easier than it used to be. You can find it here: http://hackage.haskell.org/package/HaskellNet-SSL
Hopefully this will be of some use to anybody else who stumbles upon this thread looking for information about connecting to gmail accounts. In fact, for gmail specifically, there is sample code for connecting to their IMAP/SMTP servers in the repository.
Check out imapget on hackage. It gets around this limitation by creating a proxy port.
Looks like new library appeared since your last post: imap: An efficient IMAP client library, with SSL and streaming.
© 2022 - 2024 — McMap. All rights reserved.