* anybody looked at mailcap-mime-extensions lately?
@ 2000-07-10 15:06 William M. Perry
2000-07-10 15:15 ` ShengHuo ZHU
0 siblings, 1 reply; 2+ messages in thread
From: William M. Perry @ 2000-07-10 15:06 UTC (permalink / raw)
It had a pretty serious bug in it. :)
It did not handle mime types with no extension on them gracefully. So if
you had something like:
multipart/alternative
multipart/appledouble
multipart/byteranges
multipart/digest
multipart/encrypted
multipart/form-data
multipart/header-set
multipart/mixed
multipart/parallel
multipart/related
multipart/report
multipart/signed
multipart/voice-message
text/css css
(which a lot of default /etc/mime.types do), the content-type of
anything.css would be:
multipart/alternative\nmultipart/appledouble\nmultipart/byteranges\nmultipart/digest\nmultipart/encrypted\nmultipart/form-data\nmultipart/header-set\nmultipart/mixed\nmultipart/parallel\nmultipart/related\nmultipart/report\nmultipart/signed\nmultipart/voice-message\ntext/css
Which is not what you'd want. This broke Emacs/W3 pretty severely when it
tries to guess the content-type based on the file extension. Actually, it
thoroughly confused the MIME parser in GNUS, which I now use. Eek.
Could someone commit this soon? Thanks.
-Bill P.
Index: mailcap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mailcap.el,v
retrieving revision 5.39
diff -c -w -r5.39 mailcap.el
*** mailcap.el 2000/05/07 06:29:05 5.39
--- mailcap.el 2000/07/09 15:05:09
***************
*** 881,887 ****
(while (not (eobp))
(skip-chars-forward " \t\n")
(setq save-pos (point))
! (skip-chars-forward "^ \t")
(downcase-region save-pos (point))
(setq type (buffer-substring save-pos (point)))
(while (not (eolp))
--- 881,887 ----
(while (not (eobp))
(skip-chars-forward " \t\n")
(setq save-pos (point))
! (skip-chars-forward "^ \t\n")
(downcase-region save-pos (point))
(setq type (buffer-substring save-pos (point)))
(while (not (eolp))
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: anybody looked at mailcap-mime-extensions lately?
2000-07-10 15:06 anybody looked at mailcap-mime-extensions lately? William M. Perry
@ 2000-07-10 15:15 ` ShengHuo ZHU
0 siblings, 0 replies; 2+ messages in thread
From: ShengHuo ZHU @ 2000-07-10 15:15 UTC (permalink / raw)
wmperry@aventail.com (William M. Perry) writes:
[...]
> Could someone commit this soon? Thanks.
Committed.
ShengHuo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-10 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-10 15:06 anybody looked at mailcap-mime-extensions lately? William M. Perry
2000-07-10 15:15 ` ShengHuo ZHU
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).