Open Bug 66677 Opened 25 years ago Updated 4 years ago

[RFE] Option to use file extension to place attachment MIME type

Categories

(MailNews Core :: MIME, enhancement)

enhancement

Tracking

(Not tracked)

Future

People

(Reporter: reinout, Unassigned)

References

Details

Today I received an email with an attached HTML file. The file's MIME type was TEXT/PLAIN, however (blame Pine). So there was no way of rendering this file apart from saving it to disk and opening it manually in the browser. I suggest that files with certain extensions (.htm, .html in this case) are handled by Mozilla by default.
I would also like a way to open a file using a different MIME type. I receive many text documents with application/octet-stream type :-(
Status: UNCONFIRMED → NEW
Ever confirmed: true
This is not a bug it's a feature. If you're told it's text/plain then it should be rendered text/plain. likewise if I sent you a text file a .html extension with content-type application/msword it should be handled by MS Word (or whatever else you have set to handle this mime.) MS violates this with Outlook & IE, but mozilla should be standards compliant.
I agree with James Nord; this should be marked 'invalid'.
How about changing summary to: Need way to specify different MIME type for attachments OR Need way to "Open with..." for attachments OR [RFE] Option to use file extension to place attachment MIME type I agree that mozilla should not assume things by default.
James: consider that I specified the severity as 'enhancement', so I don't believe this is a bug either. But it is very annoying - hence the report. Moses' compromise sounds acceptable to me.
We already have bug #11521, which basically covers back-end and browser support, how about we leave this as implementing that in mailnews and mark this dependent on that?
Summary: Should try to render HTML even if MIME type is wrong → [RFE] Option to use file extension to place attachment MIME type
How about "Open as..."? "Open with..." would imply *with* some other application, while the important thing here is opening *as* a specific type. Depending on file extensions would just defer the problem...if the extention was wrong or didn't exist (as could easily happen if it was sent from a Mac, which doesn't have type extentions as part of the filename) it'd be back to square one.
> I receive many text documents with application/octet-stream type :-( Bug 67940
Status: NEW → ASSIGNED
Target Milestone: --- → Future
QA Contact: esther → trix
OS: Solaris → All
Hardware: Sun → All
Product: MailNews → Core
Assignee: ducarroz → nobody
Status: ASSIGNED → NEW
QA Contact: stephend → mime
Product: Core → MailNews Core
Depends on: 453805, 444759
One solution for opening attachements that come with uncorrect mime type descriptor - without having to save it to the harddisk first - is to open the attached file by its extension rather than by its mime type. Thunderbird doesn't do that but Paolo "Kaosmos" wrote an add-on that does it. It is called OpenAttachmentByExtension and can be downloaded from here : https://nic-nac-project.org/~kaosmos/index-en.html#openattach
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.