>>>> "Darryl" == Darryl Okahata
<darrylo(a)sr.hp.com> writes:
Darryl> Oliver Graf <ograf(a)fga.de> wrote:
> Perhaps mh-e, tm, or whatever module of XEmacs is reponsible
should do a bit
> file-magic and guess the type of the file to use the correct MIME type.
Darryl> I believe TM is responsible.
Darryl> TM will also guess the type based upon the file extension (see the
Darryl> alist, "mime-file-types", in tm/tm-edit.el). There are even
entries for
Darryl> the extensions ".diff" and ".patch"; unfortunately, the
defaults for
Darryl> these are application/octet-stream (I'd like to change them to
Darryl> text/plain w/base64 -- any comments?). For unrecognized files, the
Darryl> default is also application/octet-stream.
I have the same comment as Jan Vroonhof: patch files having an
application/octet-stream type is not a bug it's definitely a feature. Patch
files are input for the patch program not plain text. I agree however that TM
should provide a means to display application/octet-stream typed attachments as
text on user request (what I currently do in Gnus is toggle MIME processing on
and off with 'W m'). I think you should not change the patch type to
text/plain without thoroughly checking it won't break patches containing
multi-byte characters.
Oscar