mail.app shows the wrong date for emails I have a very long history of emails 30+ years.
Some of my old emails are showed with the wrong date in mail.app.
Example:
These are the headers after anonymizing the data:
Received: from speedy.grolier.fr (speedy.grolier.fr [194.158.97.87]) by ns.calvacom.fr (8.7.3/8.6.9) with ESMTP id OAA21857 for &lt;*@*&gt;; Fri, 6 Sep 1996 14:02:35 +0200 (MET DST)
Received: from *.club-internet.fr (ppp-207-54.neuilly.club-internet.fr [194.117.207.54]) by speedy.grolier.fr (8.7.5/MGC-960516) with ESMTP id OAA16943 for &lt;*@*&gt;; Fri, 6 Sep 1996 14:00:14 +0200 (MET DST)
X-UIDL: 842012897.000
Message-Id: &lt;*@speedy.grolier.fr&gt;
From: &quot;*&quot; &lt;*@*&gt;
To: &quot;*&quot; &lt;*@*&gt;
Subject: Re: Faites-vous connaitre
Date: Fri, 6 Sep 1996 13:56:38 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1132
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;

below the body of the email.

So we can see that

Received: has Fri, 6 Sep 1996 14:02:35 +0200 (MET DST) and Fri, 6 Sep 1996 14:00:14 +0200 (MET DST)
Date: has Fri, 6 Sep 1996 13:56:38 +0200

The displayed date is 
So I checked with mdls
mdls  ~/Library/Mail/path_to_email/857941.emlx | grep -i date
kMDItemFSContentChangeDate = 2020-10-02 02:10:10 +0000
kMDItemFSCreationDate      = 2015-10-13 04:27:22 +0000

no useful data about the email itself. Let's check with mdimport
mdimport -t -d3  ~/Library/Mail/path_to_email/857941.emlx | grep -i date
    &quot;_kMDItemContentChangeDate&quot; = &quot;2020-10-02 02:10:10 +0000&quot;;
    &quot;_kMDItemCreationDate&quot; = &quot;2015-10-13 04:27:22 +0000&quot;;
    &quot;_kMDItemExpirationDate&quot; = &quot;&lt;null&gt;&quot;;
    &quot;com_apple_mail_dateLastViewed&quot; = &quot;2020-10-02 02:10:10 +0000&quot;;
    &quot;com_apple_mail_dateReceived&quot; = &quot;2005-07-16 15:58:43 +0000&quot;;
    kMDItemContentCreationDate = &quot;1996-09-06 11:56:38 +0000&quot;;
    kMDItemContentModificationDate = &quot;2020-10-02 02:10:10 +0000&quot;;
    kMDItemDateAdded = &quot;2020-10-02 02:10:11 +0000&quot;;
    kMDItemLastUsedDate = &quot;2020-10-02 02:10:10 +0000&quot;;
    kMDItemTextContent = &quot; cut the body of email &quot;;

So I can see that &quot;com_apple_mail_dateReceived&quot; = &quot;2005-07-16 15:58:43 +0000&quot;; is the date retained by mail.app to display the date in the UI.
Now I'm trying to understand how to change that.
Even after doing a mdimport -i ~/Library/Mail/path_to_email/857941.emlx, the date doesn't change in com_apple_mail_dateReceived.
I'm testing on this mail, but I have thousands of emails in the same state with the wrong com_apple_mail_dateReceived.
Update
Using Catalina, the emlx files do not help anymore because the mails are now in a private DB. The issue now is how to change the metadata contained in this DB when they are wrong.
Update 2
Ok I probably understood where the wrong date is coming from. In the emlx file:
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
&lt;plist version=&quot;1.0&quot;&gt;
&lt;dict&gt;
    &lt;key&gt;conversation-id&lt;/key&gt;
    &lt;integer&gt;378100&lt;/integer&gt;
    &lt;key&gt;date-last-viewed&lt;/key&gt;
    &lt;integer&gt;1601614618&lt;/integer&gt;
    &lt;key&gt;date-received&lt;/key&gt;
    &lt;integer&gt;1121529523&lt;/integer&gt;
    &lt;key&gt;flags&lt;/key&gt;
    &lt;integer&gt;9160621057&lt;/integer&gt;
    &lt;key&gt;remote-id&lt;/key&gt;
    &lt;string&gt;21&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;

Then let's try to convert the Epoch date to a normal date.
% date -r 1121529523
Dim 17 jul 2005 00:58:43 JST

So now, we need to figure out if we change the date of the emlx file and try to reimport it, if it fixes the DB.
So… it almost looks like a bug from Mail.app
I tried to modify manually the file to have the right date in the plist and with the right content-size at the top. And the new import converted it back to the date of 2005. I sent a bug report to Apple about it.