Closed Bug 64787 Opened 25 years ago Closed 17 years ago

sending / reading .wav file attachments behaviour differs from 4.x

Categories

(MailNews Core :: Composition, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 57297

People

(Reporter: sspitzer, Unassigned)

Details

when I send the same .wav file from 4.x and from 6.x: 1) when using 4.x to read mail, both attachments show up as type "audio/x-wav" 2) when using 6.x to read mail, the attachment sent from 4.x has the right type ("audio/x-wav") and the attachment sent from 6.x has "application/octet-stream" cc'ing mscott, who might already own this bug.
I'm pretty sure it is, but I won't mark it till I'm 100% sure. Mscott?
QA Contact: esther → fenella
To Esther ..
QA Contact: fenella → esther
This problem seems to occur when the attachment has NOT been downloaded with the message.
Thought I should add a little more background information. Via the Edit/Preferences/Navigator/Helper Applications dialog, I've defined a helper application for "audio/x-wav" to be associated with file extensions "wav". This information is stored in my ~/.mozilla/default/mimeTypes.rdf file just fine. The problem occurs when nsMsgComposeAndSend::AddCompFieldLocalAttachments() calls nsExternalHelperAppService::GetTypeFromExtension() to get the content type. This function only looks for the file extension in the MIME cache and plugins. From what I can decipher, the MIME cache was loaded with just the default MIME entries, content type mappings that are handled internally by Mozilla; none of the helper applications defined by the user are in the cache so the hash key lookup fails for the "wav" extension. This causes the previously mentioned compose function to default to "application/octet-stream" for the content type. It seems to me that there's some missing logic in nsExternalHelperAppService but maybe it's just tucked away somewhere else...
nsExternalHelperAppService::GetFromMIMEType() calls GetMIMEInfoForMimeTypeFromDS() to check the mimeTypes.rdf file when it doesn't find the requested content type in the hash table. Seems like similar logic is needed in nsExternalHelperAppService::GetFromExtension()...
reassign to mscott, should be same problem as 57297
Assignee: ducarroz → mscott
QA Contact: esther → trix
Product: MailNews → Core
Assignee: mscott → nobody
QA Contact: stephend → composition
Product: Core → MailNews Core
since two people have said it, duping
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.