Closed Bug 132779 Opened 22 years ago Closed 22 years ago

Date displays as 1/1/1970 00:00 or 12/31/69 5:00 if message has no 'Date:' header

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 73565

People

(Reporter: russ, Assigned: sspitzer)

References

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311
BuildID:    2002031104

For a message that has no 'Date:' header, the value in the 'Date' column in the
top right pane is shown as 1/1/1970 00:00.

Reproducible: Always
Steps to Reproduce:
1. Send yourself a message with no 'Date:' header (no, I don't know how to do this!)
2. Look at date of the message

Actual Results:  Date shows as 1/1/1970 00:00

Expected Results:  Date should either show as N/A or similar, or the date on
which the mail was recieved (I imagine the latter is easier, and it would
certainly be more useful)
Note: this isn't the same as bug 131983, since the messages in that bug do have
the 'Date:' header set.
Related to/dupe of bug 32216?
Hmm, possibly, that's about what to do if the Date header isn't valid. I'll post
a comment there in order to get someone informed enough to make a decision!
Russell, would you please attach your message and i'll look at its source? Thanks.
As requested in comment 4
FYI, Marina decided not to dupe this to bug 32216.

For all these date-related bugs, I suggest that we attempt to find a date for
the message in the following order:
1) The 'Date:' header, if it exists (this bug) and we can parse it OK (bug 32216
and bug 131983); then
2) The earliest date we can parse from a 'Received:' header; then
3) The date we received the message (just look at the From line in the message
file (not the 'From:' header of the message))

Notes
-----
Case 1: RFC822 requires that a 'Date:' header is present (see section 4.1), but
we are seeing that this isn't always the case :-)
Case 2: RCF822 does not require that any 'Received:' headers are present; it
does however require that a 'Received:' header contain a date (see section 4.1
for the format of a 'Received:' header and section 5.1 for the required format
of a date-time)
Case 3: This will always succeed, therefore we will always be able to get a
sensible date for any message
This looks like a dup of bug 73565. (apart from that somewhere along the way,
there's been a "one minute" adjustment)
I see something very similar ... when I run out of disk space.. and my e-mail
program is open.. it still receives emial and tries to filter it to one of my
local folders. Obviously this won't succeed. But what does appear to happen
(this is second time) is a blank email.. no body/subject/date or any headers at
all appears in my filtered folder. The date shows as 01/01/70 01:00 because it
had no  date set.
However when I create disk space.. then delete this e-mail, it appears gone..
but when viewing other folders.. then coming back to that folder... it has
appeared again. The only way to rid myself of it was to nuke my profile and
start again.
This is probably a different bug to the one seen here... but does indicate a
method by which to receive mails with no date header.
*** Bug 160911 has been marked as a duplicate of this bug. ***
Bug 160911 was reported on Mac OS X; setting All/All and revising Summary.
OS: Windows 2000 → All
Hardware: PC → All
Summary: Date shows as 1/1/1970 00:00 if message has no 'Date:' header → Date displays as 1/1/1970 00:00 or 12/31/69 5:00 if message has no 'Date:' header

*** This bug has been marked as a duplicate of 73565 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
marking verified as duplicate
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: