I did it the hard way and wrote my own parser.
It's really fat (not phat in a good way) and still has some problems.
Namely, really large attachments can bog it down.
I had to add a kill statement incase a user wasn't patient.
Plus i needed a subroutine for every attachment type too.
Still not done, always adding file types i never heard of.
If you brave the rapids, it was a good exercise for me
avec decoding/encoding/parsing.
Source code found at:
http://perl.to/lib/webmailcgi.txt
For runnning on a webserver,
put it in a folder on your website
with suexec enabled. The webmail.cgi program builds the
folder structure needed to run.
Edit by dws to fix formatting