Closed Bug 93991 Opened 24 years ago Closed 24 years ago

Some binary attachments receive text/plain mime type

Categories

(MailNews Core :: MIME, defect, P2)

x86
Linux

Tracking

(Not tracked)

VERIFIED WORKSFORME
mozilla0.9.9

People

(Reporter: jp.martin-flatin, Assigned: sspitzer)

References

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801 BuildID: 2001080104 When you attach a pdf file, the content type of the MIME part is mistakenly set to text/plain. It should be application/pdf. As a result, most mailers can't read Mozilla 0.9.3's pdf attachments. Reproducible: Always Steps to Reproduce: 1. type a short email message and attach a pdf file 2. send the message to yourself 3. move your incoming message from your inbox to a file that you can edit 4. edit the incoming message: you will see that the MIME part with the pdf file has a wrong content type Actual Results: Instead of showing up as an attachment, the pdf file shows up as binary data at the end of your message. Expected Results: The pdf file should show up as an attachment I've checked that my $HOME/.mailcap looks good
I have duplicated this, and also noted that, even if you input the MIME type for pdf's in Mozilla, it still will not set it to the correct MIME type when sending it as an attachment. From what I've tested, currently Mozilla sets all attachments to either text/plain or application/octet-stream. This happens even if you specify the MIME types in Mozilla.
*** Bug 87122 has been marked as a duplicate of this bug. ***
Confirming. Marking ->NEW. Nominating for 1.0 since this is a pretty big issue. Nominating for catfood. See bug 87122 for further information on this bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Changing summary for clarification. This is not limited to PDF attachments. Can someone take a look at this?
Summary: Bogus content-type MIME part header for pdf attachments → Some binary attachments recieve text/plain mime type
*** Bug 99330 has been marked as a duplicate of this bug. ***
*** Bug 88542 has been marked as a duplicate of this bug. ***
Summary: Some binary attachments recieve text/plain mime type → Some binary attachments receive text/plain mime type
This also happens in 9.1.
seen on platform Sun/Solaris
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
This problem no longer occurs for me in mozilla 0.9.4 when properly using mailcap and mime.types. I installed mozilla in /usr/local/mozilla mailcap and mime.types are located in /etc In file /usr/local/mozilla/defaults/pref/unix.js I filled in the correct path for mime.types and mailcap so that it reads: pref("helpers.global_mime_types_file", "/etc/mime.types"); pref("helpers.global_mailcap_file", "/etc/mailcap"); Furthermore I had to make the following entry in /etc/mime.types application/pdf pdf in order to make in send out in the correct mime type In /etc/mailcap I added application/pdf; kghostview %s; test=test -n "$DISPLAY" The entry in /etc/mailcap is not nescesarry for setting the correct outgoing mime-type, it only makes ghostview open the attachment when clicking on it, this can also be done by defining the right helper application in mozilla.
Use of mime.types and mailcap works for other filetypes too I tested xls, doc, eps, ps and they all work fine now
WORKSFORME with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4+) Gecko/20011002
per user comment, WFM
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Reopen per report request. Seth, can you take a look at this problem and give us your advise. Thanks
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
reassign to sspitzer for further investigation about mime type problem on Linux.
Assignee: ducarroz → sspitzer
Status: REOPENED → NEW
Target Milestone: mozilla0.9.7 → mozilla0.9.9
Keywords: nsbeta1+
Priority: -- → P2
email from thr reporter: This bug appears to be fixed in Mozilla 0.9.5, at least for pdf files. I cannot test Mozilla 0.9.6 with Windows 98 because it bombs out immediately after launch. As far as I am concerned, you can close bug 93991. As Christopher Aillon aggregated many bug reports into this one, you may want to check that other problems are fixed as well before closing this bug. Thanks for your help J.P. Martin-Flatin
Status: NEW → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → WORKSFORME
QA Contact: esther → trix
*** Bug 121208 has been marked as a duplicate of this bug. ***
verified wfm. unable to duplicate problem with latest mozilla trunk build 2002022703
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.