G'day SneakZa,
Firstly, I'll assume you mean MIME::Parser (which is the closest to Mime::parse I can find on CPAN).
If you look further down the documentation to Specifying output destination, you'll find more details including a link to MIME::Parser::Filer. The output_path(), output_dir() and output_filename() methods look promising; however, depending on what you want to do, other methods may be more appropriate: for instance, if you wanted the pathname in order to perform some cleanup of files, then purge() might be a better choice.
| [reply] [d/l] [select] |
According to the docs, you can use $parser->tmp_dir("/my/custom/tmpdir"); to manually set a temp directory. Otherwise, the system default temporary directory is used.
edit: Just realized you were asking about output directory, not temp directory. It looks like you might be able to use $parser->output_dir("/tmp"); instead of $parser->output_under("/tmp"); to output everything in the same directory if that works for you.
| [reply] [d/l] [select] |
thats not what im looking for..
i would like to know what that random directory is for later use,,
cause there might be multiple sessions of this script running , so everytime it parses a message it creates /tmp/msg-*something and the parts are saved in there..
| [reply] |
| [reply] [d/l] [select] |