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;