Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: mime::parser change attachment name

by Anonymous Monk
on Jan 28, 2013 at 08:58 UTC ( #1015644=note: print w/replies, xml ) Need Help??


in reply to mime::parser change attachment name

The right way to do this is to write your own subclass of MIME::Parser::Filer and create a custom output_path function.

An easier way might be to create a subdirectory for each email message, named, say, $i, and then use output_dir, like this

mkdir($i); $parser->output_dir($i);

before parsing the $i'th email message

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015644]
help
Chatterbox?
[Discipulus]: I bet and.. I won!! ;=)
[Corion]: Discipulus: Yes, very good spot!
[Discipulus]: a lucky programmer.. as napoleon used to say..

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2018-05-25 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?