CalebH has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

A while back, I was working on a script to parse .eml files and grab attachments. (Code can be seen at Perl MIME parser partially works). I finally got the code working the way it should, and it does the task it was created to do.

However, one of my previous attemps to work with Mime:Parser resulted in the attachments having their 'Created On' times set to the correct times that fhe attachments were provided, rather than the current behavior of showing the date as when the attachment is extracted now. Unfortunately, in the course of revisions and fixes to my current code, I lost that method.

Does anyone know how to fix this behavior, and have the attachments show as their original dates? I'm on windows 7, and using Activestates Perl bundle currently.

Thanks to all in advance! Caleb

  • Comment on Mime Parser, and keeping original attachment creation dates?

Replies are listed 'Best First'.
Re: Mime Parser, and keeping original attachment creation dates?
by Anonymous Monk on Jan 04, 2015 at 01:12 UTC
    Use utime to change timestamps ... use grep to find how to get them out of MIME