Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell RSS, mail and XML library choices

I've been learning Haskell for some time now and with every new programming language I learn I do a little project that requires working with a mail server and publishing RSS and Atom content. The only problem is, I can't seem to find decent packages for these or at least can't find any reviews of packages.

So I'll ask the community:

Any preferred packages for interacting with a mail server? (IMAP, POP3 etc)

Any preffered packages for publishing an RSS and/or Atom feed? Failing that, any preferred package for general XML?

Any suggestions for a minimalistic, low friction webserver to bind all of that together?

Thanks in advance.

like image 575
Michael Avatar asked Jul 15 '12 21:07

Michael


1 Answers

Just to answer this question, the feed package is good for producing rss. For email, folks typically just shell out to the sendmail executable directly. The mime-mail package provides a wrapper around this along with some additional tools. If you want to read email, the typical way is to set up procmail or the like, and then use an mbox parser to interact with the generated files directly. Two parsers are mbox and codec-mbox.

If you really want to interact with pop3/imap, you can do the former with pop3-client and the latter with HaskellNet, which is pretty old but apparently works. Example code for using it is available here.

like image 160
sclv Avatar answered Sep 24 '22 14:09

sclv