I'm working on a private webmail (and other) system, and am struggling a little with MIME mails. I've got a script to save all the attachments, but the thing I can't figure out is how I decide which "part" is the main email message itself (and hence which to display). Oh and cheers for the info someone gave me the other day, it inspired me to just connect to the pop3 server using a raw socket, SOOOOO much easier!!! Cheers Oli