La Vita è Bella

2007-10-27

Gmail IMAP and Date in emails

UPDATE: As in RFC 2822, the format Gmail used is "obsolete", which means although it's not recommended, clients such as Thunderbird should support it.

Finally I've got my Gmail account with IMAP access. I use Thunderbird as the mail client, and find that the "date" of many mails are the time I retrieved them via IMAP, which is incorrect.

These mails including gtalk chat logs and Gmail invitation accepted responses, that means most of the mails are sent/generated by Gmail.

An incorrect date mail have a Date line in the headers like this:

Date: Fri, 1 Dec 2006 05:35:25 -0800 (PST)

And a normal mail have a Date line in the headers like this:

Date: Thu, 21 Dec 2006 19:16:34 +0800

Seems that the problem is, Thunderbird didn't recognize a Date line with a 3-letter timezone description(the "PST" in this example), so it use the date retrieved instead.

As most of mail clients (even Gmail itself) didn't add this timezone description in the Date line while sending a mail, I guess it's Gmail's fault to add it into the chat logs and invitation responses to make it unstandard? Anyone can tell me what's the definition in the RFC?

16:54:37 by fishy - Permanent Link

May the Force be with you. RAmen