Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: file attatchment name

by McD (Chaplain)
on Feb 20, 2006 at 13:01 UTC ( [id://531395]=note: print w/replies, xml ) Need Help??


in reply to file attatchment name

$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...

Replies are listed 'Best First'.
Re^2: file attatchment name
by saberworks (Curate) on Feb 20, 2006 at 20:26 UTC
    Make that "recommended"
    ### The recommended name when extracted: $file_name = $head->recommended_filename;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://531395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found