Gnus development mailing list
 help / color / mirror / Atom feed
* Auto-overriding *.pdf application/octet-stream MIME type?
@ 2008-11-03 11:31 Simon Josefsson
  2008-11-03 12:52 ` Greg Troxel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Simon Josefsson @ 2008-11-03 11:31 UTC (permalink / raw)
  To: ding

What do people think about a variable that can be used to auto-override
MIME types based on filename extensions?  I get a lot of *.pdf marked as
application/octet-stream and selecting 'View as Type' feels dull.

Something like this:

(setq mm-content-type-mapping
      '(("application/octet-stream" "*.pdf" "application/pdf")))

The cells would be of the form (INCOMING-TYPE EXTENSION MAPPED-TYPE),
and either of INCOMING-TYPE or EXTENSION can be nil to match anything.

I've seen the mm-tweak-* variables, but they are 1) not customizable,
and 2) not easy to use to achieve the common *.pdf to application/pdf
mapping.  At least as far as I could tell?

/Simon



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-06  0:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-03 11:31 Auto-overriding *.pdf application/octet-stream MIME type? Simon Josefsson
2008-11-03 12:52 ` Greg Troxel
2008-11-03 18:13   ` Rupert Swarbrick
2008-11-03 17:12 ` Ted Zlatanov
2008-11-06  0:41 ` Russ Allbery

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).