Hi Everyone , I have some queries about parsing a e-mail message stored in unix mail box. I am facing a small problem with this program. My original problem definition is that :
" Mails come from Internet to my Unix Inbox with attachments. 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 ). Our 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. 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" The Information contained and transmitted by this E-MAIL is proprietary to Wipro and/or its Customer and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at [EMAIL PROTECTED] But here is my problem. I have sent an e-mail with an attachment from my local outlook express client to the Production 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. I don't know why is this happening . As these two parameters are missing , i am unable to detach the attachments with their original file name . Does anyone of you have the idea of why this is happening ??? Or is it the problem of any setting on the receiving End ??? Your help will be greatly appreciated. Thanks, Nagesh.
The Information contained and transmitted by this E-MAIL is proprietary to Wipro and/or its Customer and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at [EMAIL PROTECTED]