Hi,

I was having some users complain about the times shown in their Outlook 2000
e-mail listings being 'incorrect' (UTC) while when they opened the message,
the times were correct.  They were seeing this situation when using IMAP (UW
IMAP server), but not with POP (qpopper).

After doing some experimentation, I discovered that the IMAP server is
getting its time from the "From " header in the mbox, not the "Received:" or
"Date:" headers, and passing this on to Outlook.  When using POP, Outlook
evidently gets the time itself from a "Received:" header.

Since qmail delivers mail to mboxes with a "From " header that looks like
this:

>From [EMAIL PROTECTED] Mon Apr 17 20:13:21 2000

IMAP or Outlook (didn't dig in deep enough to figure out who does this)
evidently assumes that the date/time given is local time.  To rectify this
problem, I patched the qmail myctime.c to append " -0000" to the time, like
this:

>From [EMAIL PROTECTED] Mon Apr 17 20:13:21 2000 -0000

This 'fixes' the time seen in Outlook, I guess because either IMAP or
Outlook can now figure out the local time.  My question is this: does this
solution violate any standards or will it break anything obvious?  Why
doesn't qmail give some indication that the date/time given in this header
is not local time?

Thanks,

Eric

Reply via email to