good chemistry is complicated,
and a little bit messy -LW
MIME::Parser- get the filename + folder it was extracted to?by ultranerds (Friar)
|on Dec 09, 2010 at 11:01 UTC||Need Help??|
ultranerds has asked for the
wisdom of the Perl Monks concerning the following question:
I've managed to write a little function which will parse emails grabbed via Mail::POP3Client, and it works fine (it extracts the files to a folder, within a sub-folder - i.e msg-1291891283-19924-4.
The problems I have, is:
1) I need to get a list of these files, so I can rename them with a "prefix" them with yyyymmddHHMMSS_ 2) I need to rename stuff like “B%DClen%FCt %7E .Cey.pdf” into its "real" filename, i.e “BÜlenüt ~ .Ceylan. – Test.pdf”
The code is as follows:
I've had a look through the `man` for MIME::Parser, and can't see anything that would do this.
Any of you guys got any ideas/pointers? :)