Hi Everyone , I have some queries about parsing a e-mail message stored in unix mail box. I am facing a small problem with my program. My requirements are : " Clients keep sending e-mails to my Unix Inbox with attachments and I need to read each message and separate the attachments from it. " All the mails are stored in a single file ( for example in /var/mail/nagesh ). My program scope is to detach the attachments from each message and store in any directory . I have written the necessary perl script which reads each message from the unix mail box and detaches the attachments into a directory. I have used MIME::Tools package to solve the problem. As you know whenever we send a mail from a client mail software , it adds some parameters to the header , body and the attachment of the mail. For example when i send a mail from outlook express with a attachment named "Syllabus.txt" then the parameters for the attachment looks like this : Content-Type: text/plain; name="Syllabus.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Syllabus.txt" But here is my problem. I have sent an e-mail with an attachment from my local outlook express client to the Unix Mail box . And when i opened the message on the unix mail box i was able to find Content-Type , Content-Transfer-Encoding , and Content-Disposition parameters but the parameters "name" and "filename" were missing. As these parameters are missing in the e-mail header , the MIME::Parser is unable to detach the attachments with its original name. Does anyone of you have the idea of why these parameters are missing ??? Is it the problem with how MIME mails are encoded and sent ( or ) Am i wrong in understanding MIME encoded mails ??? Your help will be greatly appreciated. Thanks, Nagesh.
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *****************************************************************************