Open Bug 1643894 Opened 4 years ago

TB should check actual MIME type of attachment against declared MIME type

Categories

(Thunderbird :: Mail Window Front End, enhancement)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: contact, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

Get a mail with an attachment containing Python code and an .py extension but has Content-Type: text/plain;.

Open attachment.

Actual results:

Thunderbird considers attachment as plain text and does not offer to open it with my Python IDE.

Expected results:

Thunderbird could have checked the actual content of the attachment (with eg. the mimetype program under Linux) and displayed a warning about the inconsistency and offered to treat the attachment as text/x-python.

You need to log in before you can comment on or make changes to this bug.