ANNOUNCE: mime-mail 0.1.0

Hi all (again), I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces: * A partHeaders record, allowing you to place arbitrary headers on individual parts of a message. This is especially useful for ContentID * Support for quoted-printable. There are two new Encoding constructors added: QuotedPrintableText and QuotedPrintableBinary. They differ in how they treat newline characters: the latter outputs CRs and LFs in an escaped form, while the former strips all CRs and outputs LFs as the ASCII codes for "\r\n". * Support for encoded-word for header values. This is a completely transparent change: now if you use non-ASCII characters in your header values, mime-mail will automatically encode appropriately. Enjoy! Michael [1] http://hackage.haskell.org/package/mime-mail

On Wed, 2010-12-08 at 21:11 +0200, Michael Snoyman wrote:
Hi all (again),
I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces:
* A partHeaders record, allowing you to place arbitrary headers on individual parts of a message. This is especially useful for ContentID * Support for quoted-printable. There are two new Encoding constructors added: QuotedPrintableText and QuotedPrintableBinary. They differ in how they treat newline characters: the latter outputs CRs and LFs in an escaped form, while the former strips all CRs and outputs LFs as the ASCII codes for "\r\n". * Support for encoded-word for header values. This is a completely transparent change: now if you use non-ASCII characters in your header values, mime-mail will automatically encode appropriately.
Enjoy! Michael
Sorry I'm asking here (I know it is slightly off-topic) - does anyone knows package to parse MIME messages operating on ByteString/Text instead of String (reverse of mime-mail)? Regards

On Thu, 09 Dec 2010 01:10:59 +0000, Maciej Piechotka
On Wed, 2010-12-08 at 21:11 +0200, Michael Snoyman wrote:
Hi all (again),
I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces:
* A partHeaders record, allowing you to place arbitrary headers on individual parts of a message. This is especially useful for ContentID * Support for quoted-printable. There are two new Encoding constructors added: QuotedPrintableText and QuotedPrintableBinary. They differ in how they treat newline characters: the latter outputs CRs and LFs in an escaped form, while the former strips all CRs and outputs LFs as the ASCII codes for "\r\n". * Support for encoded-word for header values. This is a completely transparent change: now if you use non-ASCII characters in your header values, mime-mail will automatically encode appropriately.
Enjoy! Michael
Sorry I'm asking here (I know it is slightly off-topic) - does anyone knows package to parse MIME messages operating on ByteString/Text instead of String (reverse of mime-mail)?
I have a fork of the mime library to work on bytestring, it worked for me but didn't took the time to release it. (I sent multiple mails to the original author though). I've just setup a repo on github [1], feel free to test, fork, polish... Have fun, [1]: https://github.com/np/mime-bytestring -- Nicolas Pouillard http://nicolaspouillard.fr

Michael Snoyman
Hi all (again),
I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces:
* A partHeaders record, allowing you to place arbitrary headers on individual parts of a message. This is especially useful for ContentID * Support for quoted-printable. There are two new Encoding constructors added: QuotedPrintableText and QuotedPrintableBinary. They differ in how they treat newline characters: the latter outputs CRs and LFs in an escaped form, while the former strips all CRs and outputs LFs as the ASCII codes for "\r\n". * Support for encoded-word for header values. This is a completely transparent change: now if you use non-ASCII characters in your header values, mime-mail will automatically encode appropriately. Nice! :)
I will find some time develop GUI mail-client... -- Andy

On Wed, Dec 8, 2010 at 19:11, Michael Snoyman
Hi all (again),
I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces:
Very nice! Are you working on a parser to accompany the renderer? ;-) /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

On Thu, Dec 9, 2010 at 11:48 AM, Magnus Therning
On Wed, Dec 8, 2010 at 19:11, Michael Snoyman
wrote: Hi all (again),
I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces:
Very nice! Are you working on a parser to accompany the renderer? ;-)
/M
I'm not currently, though that is definitely a direction the project could expand to. I've already written some multipart-parsing code in wai-extra, though that code probably wouldn't help here too much. The quoted-printable decoding is simple enough to write, and base64-decoding has already been solved. Is this a challenge anyone out there wants to undertake? Michael

On Thu, 2010-12-09 at 11:53 +0200, Michael Snoyman wrote:
On Thu, Dec 9, 2010 at 11:48 AM, Magnus Therning
wrote: On Wed, Dec 8, 2010 at 19:11, Michael Snoyman
wrote: Hi all (again),
I'm happy to announce the second major release of the mime-mail[1] package. mime-mail is a package providing support for rendering multipart emails. This new release introduces:
Very nice! Are you working on a parser to accompany the renderer? ;-)
/M
I'm not currently, though that is definitely a direction the project could expand to. I've already written some multipart-parsing code in wai-extra, though that code probably wouldn't help here too much. The quoted-printable decoding is simple enough to write, and base64-decoding has already been solved. Is this a challenge anyone out there wants to undertake?
Michael
Hmm. Probably no. I wanted to write a proper parser for MIME for nntp package but I gave up in the middle of RFC and concentrated on more interesting problems. Regards
participants (5)
-
Andy Stewart
-
Maciej Piechotka
-
Magnus Therning
-
Michael Snoyman
-
Nicolas Pouillard