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

3

7

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?

Moonset answered 28/9, 2012 at 18:19 Comment(2)
Not sure if you would consider this an actual solution, but it looks like the imapget package uses HaskellNet to fetch from Gmail. It looks like the author uses some of his own SSL code.Rasping
Just FYI: TLS should NEVER be part of another protocol. It should be its own layer, between the protocol and the protocol below, because modularity saves a lot of duplicate work. So if anyone reads this, avoid luddite “techies” telling you how https, imaps, and whatevers include TLS, because those are badly misdesigned by incompetent people from the commercial world driven to monolithism by an anti-social dog-eat-dog culture.Lorenzen
D
3

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

Deth answered 29/9, 2012 at 3:35 Comment(0)
M
7

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.

Moriah answered 29/8, 2013 at 23:16 Comment(0)
D
3

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

Deth answered 29/9, 2012 at 3:35 Comment(0)
E
1

Looks like new library appeared since your last post: imap: An efficient IMAP client library, with SSL and streaming.

Eyde answered 11/11, 2016 at 22:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.