Technical article 105543

The mail summary header does not recognize daylight savings time.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

When daylight savings time is in effect, using mail(C) or mailx(C) to read a user's mail results in the initial mail summary header list showing the incorrect time that the mail arrived.

Typically, the arrival time displayed by mail in the summary list
is one hour ahead of the system time when the mail was sent.  For
example (stating the system time when the mail was sent in the
Subject field for comparison):
# mail
SCO OpenServer Mail Release 5.0  Type ? for help.
"/usr/spool/mail/root": 7 messages 7 unread
 U  7 root             Fri May  2 16:21   10/290   Test Mail at 15:21
 U  5 root             Tue Apr  8 16:43   11/350   Auto Boot Log

The first message was sent at 15:21, but mail reports 16:21.

However, when the message is viewed the full header shows the time correctly.

Cause

The mail(C) and mailx(C) utilities are not taking account of daylight savings time when displaying the initial mail header summary list.

There is a discrepancy between the system time that the message was
sent and the time displayed by mail(C).  This is not an issue when
daylight savings time is not in effect; additionally, it only
affects the initial summary list, as the time displayed in the
full mail header is correct.

Solution

This problem has been reported to SCO Engineering and is scheduled to be addressed in an upcoming release.

The arrival time on the mail summary header list can be safely
ignored as this is only an interpretation of the stored arrival
time in the header.  The header information itself is correct and
the correct arrival time can be seen when viewing the complete
message in mail(C).

This issue can be worked around by not setting daylight savings time on the system, that is, manually adjusting the system time for daylight savings time changes.

Other mail readers, such as Netscape mail, do not seem to exhibit this behavior.

See also

TA105119, "date(C) behaves differently on OpenServer 5.0 when using a Daylight Savings TZ."

From the Xinuos technical article database, record 105543. Reproduced with permission. The original is at www.sco.com/ta/105543, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.