I have a Maildir structure, that got wrongly restored from backup and all files have the file date of the restore instead of when they have been created/received.
What would be the best way to correct this?
I think about recursively reading the first Received: line, extracting the date and touching the files, but it's a bit above my perl/shell skills. Can someone help?
Something to get you started: