> Rodos wrote:
>
> However it would be nice to use something better than mpage to format the
> email a little better (stip out headers, create a nice to/from/subject
> header) and handle mime so that silly attachments such as word are
> discarded but other ones such as images or text are converted.
>
> Anyone know of any existing code. I did some hunting but could not find
> anything.
You a C-bunny?
I'm not, but I'm trying... I'm interested in email processing myself ATM, so
I've been hunting around for example code for how to handle the outrageously
wide interpretation of the 'standards'.
Turns out a little bit of jwz's excellent email handling code was left in
Netscape 4, and released as part of the Mozilla Classic source. There's
still a fair bit unreleased though (notably his cool threading code, for
which he's documented the algorithm on his site - no links, I'm too busy
hacking).
Read the 'libmime' source, which is in the classic/lib part of the tree.
There's a little test harness that converts a message to HTML which may
help you out. And, ahem, if you figure out how to get the Classic source out
of the tree, I'd love to hear about it (I've been reading it on
lxr.mozilla.org, and there's no 'Classic' module as far as I can see).
- Jeff
-- [EMAIL PROTECTED] ----------------------------- http://www.slug.org.au/ --
linux.conf.au - coming to Sydney in January 2001
Installing Linux Around Australia - http://linux.org.au/installfest/
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug