|| at Nov 12, 2012 at 4:18 pm
On Mon, 12 Nov 2012, Jens-Uwe Mager wrote:
I have the need to read a unix style mbox file containing a lot of email
messages and process each of those. Unfortunately a lot of these messages
have rather arcane MIME content types and quite a few even use
quoted-printable as encoding. Is there any library out there that would
help parsing such a mail box?
Many moons ago, I wrote a simple mail archive -> html converter that also had
to do this. The relevant github repos are github.com/bytbox/go-mail and
github.com/bytbox/sloc. IIRC, quoted-printable was handled correctly. I don't
handle fancy mime stuff in the headers, though. It might be a good starting
place for you.
go version go1.0.3
Linux jagadai 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 GNU/Linux