[Haskell-beginners] Haskell POP3S

Franco franco00 at gmx.com
Sat Sep 1 12:57:43 CEST 2012

Hello everyone,

I am trying to write a simple script in Haskell. Such script is meant to:

	- contact my email (pop3)
	- ask the server wheter there are new messages
	- report the result back to me

This was trivial to write, using the "pop3-client" library, but I soon realized the whole thing is pretty unsecure. User and password are sent in plain text and I would like to encrypt those.

So I asked Hayoo: it seems there is only one package which supports pop3s, curlhs; still, I didn't manage to get it. So I am asking you:

	- do you know wheter curlhs is fit for my goal? pop3-client had a nice
	  'getNumberOfMessages' function. I don't see anything similar in there
	- do you have examples of querying mail via curl? I found very few of those

Thanks in advance. 
I should mention this thing was meant to be fed to xmobar, to check at intervals of, say, 15 minutes, wheter I got new mail without having a mail client always open


Franco <franco00 at gmx.com>

More information about the Beginners mailing list