From gordon at kwister.com Mon Aug 11 09:19:57 2003 From: gordon at kwister.com (Gordon Stewart) Date: Mon Aug 2 21:30:38 2004 Subject: [hbpm] MIME::Lite Message-ID: <5.2.0.9.0.20030812021943.00a39060@pop3.slingshot.co.nz> Hi there Can anyone advise me of a web-tutorial (for dummies) in regards to MIME:Lite (or another MIME type) Ive found HUNDREDS of tutorials & stuff in sending files via email, using MIME:Lite however, I cannot find anything suitable to RECEIVE emails - with MIME. Ive already got a system up & running, to send / receive, subscribe & unsubscribe to my mailing list system... - all written from scratch - in perl.. (I didnt get an existing system & re-design it..) Basically, Ive got the entire message (headers & all) - in a $variable How can I easily :- 1) Determine if a message has a mime component (i could create complex regexes, but I guess there is a short/quick way) if it has a MIME component, 2) Split it up into HTML / TEXT emails (if its a combined email) 3) Save the attachment to the server (all properly formatted etc.. - EG a picture / file) I guess I can then - send the file along its way - Using the various scripts i see for sending emails.. Thanks - all I need is the 'receiving' / 'saving' parts... G