I work with Postfix and Dovecot for SMTP and IMAP. They are on the latest CentOS 7 available versions and the messages are stored in Maildir format.
We have made an agreement with Google and our mailboxes will be transfered to them very soon.
We have this mailserver infrastructure since the nineties. So, some messages have an old "Date" header format, with the year field as "yy". Since Google demands it to be "yyyy", they told me that I need to convert this information on every needed message before the Imap import to their cloud. This follows the RFC2060 and 3501.
This is an university and theses old messages contains research data that should be preserved.
Here is an example:
date: Thu, 20 Apr 17 15:45:15 +0000
should be:
date: Thu, 20 Apr 2017 15:45:15 +0000
I've been looking for script to perform this fix by keeping the header, the date, and only fix the year in every needed file and without changing the file timestamp (some mail clients use this as sorting method). But I haven't found any.
So, is there anyone that can help me?
Thank you.