![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with dd command or maybe AFS problem | Anta | Shell Programming and Scripting | 0 | 08-25-2006 11:10 AM |
| SSH Problem auth problem | budrito | UNIX for Advanced & Expert Users | 1 | 03-17-2004 10:12 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 ). The 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 perl MIME::Parser ) 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 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. |
|
||||
|
I don't know what this problem exactly is. But when I wrote some own shell/perl scripts for incomming e-mails [virus scanning], everything has worked exept Outlook e-mails.
All e-mail klients write attachements parameter to single line in header but Outlook to several lines delimited by tab from begining of the line. I had to rewrite all by header parsing ... |
|
||||
|
need your help-urgent
Hi Nagesh
My name is harish.I am also working on a same kind of script.It will be really helpfull if you share your perl script with me.Please reply with your suggestion. Thanks Harish Kumar Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|