Closed Bug 1872897 Opened 1 year ago Closed 1 year ago

Thunderbird uses "received from" header with date in the future

Categories

(Thunderbird :: General, defect)

Thunderbird 115
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bugzilla, Unassigned)

Details

(Whiteboard: [closeme 2024-04-15])

Attachments

(1 file)

Attached image Untitled.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

I am receiving mail by way of IMAP.
I've verified that the future date is in the header, regardless of what mail client, web interface that i use

Actual results:

There are multiple "Received From:" headers and 1 Date: header that report a date of, for example, 2040.
There is also another header that has the actual received date, for example 2 Feb 2023.

Thunderbird is sorting mail based on the Date: header and/or other received from: headers with the future date

Example header pieces:
Date:Wed, 22 Feb 2040 18:33:20 +0100

Received:from 10.221.57.8 by atlas107.aol.mail.ne1.yahoo.com pod-id NONE with HTTPS; Wed, 22 Feb 2040 17:33:35 +0000

X-Apparently-To:omitted@omitted_again; Wed, 22 Feb 2040 17:33:35 +0000

Received:from mta-01.omitted.com ([omitted.ip]) by DIR-08 with LMTP id omitted (envelope-from <>) for <omitted@omitted>; Wed, 22 Feb 2023 13:21:34 -0500

Other mail clients do not do this, as shown in screenshot.

Expected results:

Choose which header thunderbird uses for sort?
Ability to filter messages by date with an option of "if date is 2 days future from today"
(as timezones difference around the world could cause nature/real "received from the future", IE: Russia to Alaska

Reporter,
Are you seeing this also with version 115.9.0 or newer?

Whiteboard: [closeme 2024-04-15]

(In reply to Wayne Mery (:wsmwk) from comment #1)

Reporter,
Are you seeing this also with version 115.9.0 or newer?

Certainly yes. There is no code in TB that determines whether a date is meaningful. And certainly no code that selects the "most meaningful" date. If the sender writes garbage in the date header, the date is simply garbage.

The Received date is only used as a fallback if there is no Date header at all.

I think this bug is INVALID

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Component: Untriaged → General
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: