We don't bite newbies here... much | |
PerlMonks |
Carving up MIME email on STDINby stew (Scribe) |
on Dec 03, 2003 at 18:14 UTC ( [id://311961]=perlquestion: print w/replies, xml ) | Need Help?? |
stew has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I am trying to take a MIME email on STDIN and then extract any attatchment and re-assemble them into a fresh message (after I've performed a few tasks on the original irrelevant to this question) Here is my code that takes a Mail::Internet message and parses it into parts using MIME::Parser. I can get the mime types no probs using $parts[$i]->mime_type but which method do I call to get the file name and data for each part. There seems to be little info in the docs. (In the real app the print bit in the above loop would probably be used to add parts to MIME::Lite message or similar!) Many thanks Stew
Back to
Seekers of Perl Wisdom
|
|