I don&#39;t know about either library, but from what I read about pop3s protocol it might be feasible to hack on pop3-client library to make it work with pop3s protocol. This way you would retain the nice API and gain security.<div>

<br></div><div>The other option, i.e. using curlhs, may easier still. I just wanted you to consider extending the pop3-client library.</div><div><br></div><div>Best regards,</div><div>Krzysztof Skrzętnicki<br><br><div class="gmail_quote">

On Sat, Sep 1, 2012 at 12:57 PM, Franco <span dir="ltr">&lt;<a href="mailto:franco00@gmx.com" target="_blank">franco00@gmx.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello everyone,<br>
<br>
I am trying to write a simple script in Haskell. Such script is meant to:<br>
<br>
        - contact my email (pop3)<br>
        - ask the server wheter there are new messages<br>
        - report the result back to me<br>
<br>
This was trivial to write, using the &quot;pop3-client&quot; 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.<br>
<br>
So I asked Hayoo: it seems there is only one package which supports pop3s, curlhs; still, I didn&#39;t manage to get it. So I am asking you:<br>
<br>
        - do you know wheter curlhs is fit for my goal? pop3-client had a nice<br>
          &#39;getNumberOfMessages&#39; function. I don&#39;t see anything similar in there<br>
        - do you have examples of querying mail via curl? I found very few of those<br>
<br>
Thanks in advance.<br>
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<br>
<span class="HOEnZb"><font color="#888888"><br>
-Franco<br>
<br>
<br>
--<br>
Franco &lt;<a href="mailto:franco00@gmx.com">franco00@gmx.com</a>&gt;<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</font></span></blockquote></div><br></div>