The "internal date" is when a message was filed / received by the mail server.
I'm just going on the assumption that a wrong date/time/zone on a mail server is much, much less likely than such on an end-user device.
I believe this assumption to be very much valid (and you can search the forum for evidence -- from before I changed my code like this).
Now as for the origin of those datums (if you're curious):
- IMAP: RFC 3501, "INTERNALDATE"
- EWS: the DateTimeCreated element (in XML)
- POP3: nothing in the protocol, so I use "Received" headers, prepended by SMTP transports (and accessible via POP3 as part of message source):
Received: from mxfront10o.mail.yandex.net ([127.0.0.1])
by mxfront10o.mail.yandex.net with LMTP id LUh46ZWq
for <***@yandex.ru>; Sun, 2 Mar 2014 19:21:30 +0400
Received: from mail-vc0-x230.google.com (mail-vc0-x230.google.com [2607:f8b0:400c:c03::230])
by mxfront10o.mail.yandex.net (nwsmtp/Yandex) with ESMTPS id ZppcC4zj2B-LTwmLMck;
Sun, 2 Mar 2014 19:21:29 +0400
(using TLSv1 with cipher RC4-SHA (128/128 bits))
(Client certificate not present)
Received: by mail-vc0-f176.google.com with SMTP id la4so2648386vcb.35
for <***@yandex.ru>; Sun, 02 Mar 2014 07:21:28 -0800 (PST)
Received: by 10.220.155.201 with HTTP; Sun, 2 Mar 2014 07:21:28 -0800 (PST)