Red Hat Bugzilla – Bug 163866
xemacs MH-E: mh-compose-insertion doesn't ask for MIME type
Last modified: 2007-11-30 17:11:10 EST
Description of problem:
mh-compose-insertion always gives MIME type of audio/x-mod
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a draft message using MH-E
2. C-c C-m C-i, give file name etc
Attachment is audio/x-mod
Should ask for MIME type
Hm, I'm not a mh-e user, and I could not reproduce this in brief tests, so you
may need to walk me through here... (oh, and mh-e is in the xemacs-sumo
Anyway, first, do you have the "file" package installed? If yes, what does
"file -i -b FILENAME" where FILENAME is the file you're trying to attach
If the "file" command is not available, you should be asked for the content
type, otherwise it should be determined based on file's output.
By the way, there's a new xemacs-sumo heading towards the repository as soon
as the Extras build system is available again, but according to upstream
changelogs, mh-e hasn't changed.
Might it be breakage in nmh? I've got nmh-1.1-8.fc4 and xemacs-sumo-20050505-6 here.
$ file 4802.1.txt
4802.1.txt: ISO-8859 text
$ file J-Planificacion2005-Vinculacion.doc
J-Planificacion2005-Vinculacion.doc: Microsoft Office Document
Also guesses audio/x-mod
I've also tried with PostScript and PDF files, which file(1) identifies fine.
I don't know about nmh either.
But just to verify, could you run the file(1) tests
using the -i and -b arguments to it, for example "file -i -b
J-Planificacion2005-Vinculacion.doc" (see comment 1)? That's how mh-e invokes
BTW, here's how I'm trying to reproduce the problem (and failing), is this the
$ rpm -q nmh xemacs-sumo xemacs file
$ file -i -b pcsc-wrapper-bt-full.txt
C-c C-m C-i
[...add description etc, no media type asked...]
The result is this in the MH-Letter buffer:
<#part type="text/plain" filename="~/pcsc-wrapper-bt-full.txt"
All other file types appear to get the correct MIME types too.
Okay, I upgraded to file-4.14-1 on a FC4 box, and "file -i -b foo" returns
audio/x-mod for everything. Reassigning...