Re: Sample code for displaying a MIME email message on a web page?

Joshua Baer
Sat, 04 Aug 2007 17:06:19 -0000

Thanks for the pointer! That looks useful, but doesn''t address what
I''m looking for. I want to be able to read in an mbox file, parse off
a message, and display it on a web page similar to how you would view
it in Hotmail or Gmail. That means decoding the MIME but also
"sanitizing" the HTML.

~Josh


On Aug 4, 5:37 am, Kip <kipco...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Josh, I found the following very helpful:
>
>
http://blog.mondragon.cc/articles/2006/12/30/decoding-email-attachmen...http://www.ruby-doc.org/stdlib/libdoc/net/pop/rdoc/classes/Net/POP3.html
>
> Cheers, --Kip
>
> On Aug 4, 11:08 am, Joshua Baer
<joshuab...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > Can anyone point me to a good source of sample code for taking a raw
> > email message (multipart, with attachments) and displaying it on a web
> > page? Also same thing for composing a new message with attachments?
>
> > ~Josh