Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
On Thu, Oct 28, 2010 at 3:05 PM, John Goerzen jgoer...@complete.org wrote: 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. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
:) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] 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, cas...@istar.ca wrote: :) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
On 27 October 2010 19:46, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: 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, cas...@istar.ca wrote: :) 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
Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
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 chrisd...@googlemail.com wrote: On 27 October 2010 19:46, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: 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, cas...@istar.ca wrote: :) 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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
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. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
On Oct 27, 2010, at 12:43 PM, cas...@istar.ca wrote: :) I will point out that Python Haskell Interface has an excellent axiom. Unfortunately, my attempt to write a nice wrapper around the Python FFI foundered years ago chasing segfaults. It doesn't seem like it should be too hard, if you get the reference counting right - and tie everything to the GIL (ick). ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?
From: Brandon Moore brandon_m_mo...@yahoo.com On Oct 27, 2010, at 12:43 PM, cas...@istar.ca wrote: :) I will point out that Python Haskell Interface has an excellent axiom. Unfortunately, my attempt to write a nice wrapper around the Python FFI foundered years ago chasing segfaults. It doesn't seem like it should be too hard, if you get the reference counting right - and tie everything to the GIL (ick). Quite a typo. That should be an excellent abbreviation (PHI). Brandon ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe