Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-21 Thread Yitzchak Gale
I wrote: 2. mailHeaders should have an Ord instance that compares case-insensitively, though the underlying Strings should remain Strings. I really meant Eq instance - which then affects the Ord instance, too. Sorry. wren ng thornton wrote: What is the intended use case? Since many uses of

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-21 Thread Michael Snoyman
On Wed, Oct 20, 2010 at 4:51 PM, Yitzchak Gale g...@sefer.org wrote: Michael Snoyman wrote: [1] http://hackage.haskell.org/package/mime-mail Great news! This is an important package. It's obviously very preliminary, though. This is not trivial to get right - look at the long and colorful

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-20 Thread Yitzchak Gale
Michael Snoyman wrote: [1] http://hackage.haskell.org/package/mime-mail Great news! This is an important package. It's obviously very preliminary, though. This is not trivial to get right - look at the long and colorful history of the Python email library, detailed on the first page of the

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Michael Snoyman
On Sun, Oct 17, 2010 at 7:07 PM, Jeremy Shaw jer...@n-heptane.com wrote: On Sun, Oct 17, 2010 at 10:14 AM, Michael Snoyman mich...@snoyman.com wrote: I'm sure people would love to see built-in support for serving over SMTP, but I think that's more appropriate for a different package. Proper

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Robert Wills
I've had a look at mime-mail and think it provides a nice interface for sending emails. I started trying to write up a simple default interface to it for easily adding attachments (I was going to look at adding a pandoc-based automatic markdown to html later today). getMimeType

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Michael Snoyman
On Mon, Oct 18, 2010 at 2:37 PM, Robert Wills wrwi...@gmail.com wrote: I've had a look at mime-mail and think it provides a nice interface for sending emails. I started trying to write up a simple default interface to it for easily adding attachments (I was going to look at adding a

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Robert Wills
I've updated the gist to now include automatic conversion through pandoc of markdown to html. On Mon, Oct 18, 2010 at 2:32 PM, Robert Wills wrwi...@gmail.com wrote: On Mon, Oct 18, 2010 at 1:57 PM, Michael Snoyman mich...@snoyman.com wrote: This is *exactly* the kind of high-level interface I

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Michael Snoyman
Just for the record, while I like the markdown-based interface, I can't include it in the mime-mail package: I'm not going to make Pandoc a dependency of mime-mail, both for weight and license reasons. It would be awesome to see a markdown-mail or similar package, however. Michael On Mon, Oct

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-18 Thread Robert Wills
Yes I was thinking that too. Bringing in Pandoc brings in too many other dependencies. Perhaps it could be left in an uncompiled example or readme? On Mon, Oct 18, 2010 at 6:20 PM, Michael Snoyman mich...@snoyman.com wrote: Just for the record, while I like the markdown-based interface, I

[Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Kevin Jardine
Hi Michael, Last time I checked Hackage for email libraries I could find some basic SMTP systems but nothing very recent or robust. Practically every web app needs to send email, so I think that a robust and well maintained email package would be very useful. I know you have many other projects

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Robert Wills
Last summer I put cabalized HaskellNet (written by Jun Mukai for a GSOC) (http://hackage.haskell.org/package/HaskellNet) and uploaded it to hackage. I put myself down as a maintainer but I haven't done much maintaining. HaskellNet also does multipart mime and base64 stuff as well as imap and pop

[Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Kevin Jardine
Hi Robert, I did look at HaskellNet a few months ago. It looked big and undocumented so I guess I got scared away. What I'd be interested in is something with the simplicity of the PHP mail command (or perhaps the phpmailer package). I dislike PHP as a programming language but it does basic

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Robert Wills
Yes you're right Kevin. I'll put up a new release sometime in the next week with some more examples and possible some simpler methods if only so HaskellNet can be more easily evaluated. As I recall Happstack also uses an smtp library. I forget which one. -Rob On Sun, Oct 17, 2010 at 9:29 AM,

[Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Kevin Jardine
Something along the lines of these examples would be helpful I think: http://phpmailer.worxware.com/index.php?pg=examples Phpmailer is probably the most widely used email library, so if it could be shown that there was a Haskell equivalent (or better), I think that might start attracting the

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Edward Z. Yang
I'm a bit partial to Swift Mailer [1]. It's useful to support multiple transport backends, especially in situations where sendmail is not portable. Cheers, Edward [1] http://swiftmailer.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Michael Snoyman
OK, I've put together a new repository on github[1]. I've modified the original code from Yesod to now include support for multipart/alternative, and to only create a multipart when there really are multiple parts. I've done some simple tests, and it seems to work just fine. Now a question for

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Jeremy Shaw
On Sun, Oct 17, 2010 at 10:14 AM, Michael Snoyman mich...@snoyman.com wrote: I'm sure people would love to see built-in support for serving over SMTP, but I think that's more appropriate for a different package. Proper SMTP support will also include SSL/TLS support, which will require even

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Donn Cave
Quoth Jeremy Shaw jer...@n-heptane.com, ... I wonder what it would take to make it so that the message body could be multipart mime... Well, here's what it takes for me - - function to determine file type of attachment (e.g., image/jpeg) - data encoding (base64, maybe quoted-printable, others)