Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Haskell IMAP library that works with TLS? [closed]

Tags:

haskell

imap

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?

like image 575
dan Avatar asked Sep 28 '12 18:09

dan


2 Answers

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.

like image 180
danielpwright Avatar answered Nov 13 '22 01:11

danielpwright


Check out imapget on hackage. It gets around this limitation by creating a proxy port.

like image 3
John Wiegley Avatar answered Nov 13 '22 02:11

John Wiegley