If Python now has a good email library; how challenging is it to call Python from Haskell?

How does python having an e-mail library change the situation with
calling Python from Haskell?
On Wed, Oct 27, 2010 at 10:43 AM,
:)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On 27 October 2010 19:46, Thomas DuBuisson
How does python having an e-mail library change the situation with calling Python from Haskell?
He's commenting, presumably, on the apparently disparate nature of
Haskell email libraries and the fortuitousness therefore of Python
having a describadly good email library, not that this changes the
difficulties in interfacing with Python in general.
On 27 October 2010 19:43,
:)
glguy's Github interfaces with Python; it involves some C, naturally, but it's not complicated: http://github.com/glguy/hpaste

Are there any C libraries that you can use? I did a google search on email
client in c and failed in an epic fashion but I figure parts of sendmail or
mutt could be used.
-deech
On Wed, Oct 27, 2010 at 12:55 PM, Christopher Done wrote: On 27 October 2010 19:46, Thomas DuBuisson How does python having an e-mail library change the situation with
calling Python from Haskell? He's commenting, presumably, on the apparently disparate nature of
Haskell email libraries and the fortuitousness therefore of Python
having a describadly good email library, not that this changes the
difficulties in interfacing with Python in general. On 27 October 2010 19:43, :) glguy's Github interfaces with Python; it involves some C, naturally,
but it's not complicated: http://github.com/glguy/hpaste
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Am 27.10.10 19:43, schrieb caseyh@istar.ca:
:)
Well I was considering using a foreign library too for email. It creates a whole lot of dependencies, so I'd prefer to be able to do it entirely in Haskell instead. I was also wondering if it's possible to create a DSL for the email stuff and then use different interpreters for such terms which could evaluate to calling foreign lib (on Windows possibly MAPI). Günther

From a cursory look at the 3.0 library documentation, it looks to me like IMAP support still means the old imaplib module. That's
Don't know, but probably challenging enough to make it worth challenging the assumption that Python now has a good email library. pretty rudimentary, compared to the HaskellNet IMAP support. Donn Cave, donn@avvanta.com

On 10/27/2010 01:22 PM, Donn Cave wrote:
Don't know, but probably challenging enough to make it worth challenging the assumption that Python now has a good email library.
From a cursory look at the 3.0 library documentation, it looks to me like IMAP support still means the old imaplib module. That's pretty rudimentary, compared to the HaskellNet IMAP support.
Not just rudimentary, but hideously buggy and with a terrible API. imaplib2 improves the API a bit but makes the bugginess worse. I wrote and maintained OfflineIMAP from 2001 (I think) to 2010 so have just a wee bit of experience with that issue. Python's mail system is not strong in my book. It barely scrapes by. The MIME bits are decent, but the mail client stuff is very poor. There is no abstraction system over generic mailbox repositories IIRC. If you want to support IMAP, POP, Maildirs, mboxes, etc. you have to code up support for each. -- John

On Thu, Oct 28, 2010 at 3:05 PM, John Goerzen
On 10/27/2010 01:22 PM, Donn Cave wrote:
Don't know, but probably challenging enough to make it worth challenging the assumption that Python now has a good email library.
From a cursory look at the 3.0 library documentation, it looks to
me like IMAP support still means the old imaplib module. That's pretty rudimentary, compared to the HaskellNet IMAP support.
Not just rudimentary, but hideously buggy and with a terrible API. imaplib2 improves the API a bit but makes the bugginess worse.
I wrote and maintained OfflineIMAP from 2001 (I think) to 2010 so have just a wee bit of experience with that issue.
This is off-subject, but I too wrote a mail program in python around 1999 or so. I eventually gave up on imaplib and wrote my own which was (if I may say so myself) simpler, easier to use, and less buggy. If no one has replaced it >10 years later, I'm guessing not too many people care about it. I was pretty tired of email by that point and tossed the whole project into some dark corner and forgot about it. Nowadays if I want to send email, it's cmdline sendmail all the way.
participants (8)
-
aditya siram
-
caseyh@istar.ca
-
Christopher Done
-
Donn Cave
-
Evan Laforge
-
Günther Schmidt
-
John Goerzen
-
Thomas DuBuisson