Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: file attatchment nameby McD (Chaplain) |
on Feb 20, 2006 at 13:01 UTC ( [id://531395]=note: print w/replies, xml ) | Need Help?? |
$path is the path to where the MIME parser has parsed out your message on disk, and it does indeed try to parse into "safe" filenames.
To get to the name suggested in the MIME structure, you want: $part->head->recommended_filename(); See the manpage for MIME::Head Peace, -McD Update: fixed typo, tnx. That will teach me to post before coffee...
In Section
Seekers of Perl Wisdom
|
|