Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <simon@josefsson.org>
To: ding@gnus.org
Subject: Auto-overriding *.pdf application/octet-stream MIME type?
Date: Mon, 03 Nov 2008 12:31:13 +0100	[thread overview]
Message-ID: <873ai9dp1a.fsf@mocca.josefsson.org> (raw)

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



             reply	other threads:[~2008-11-03 11:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-03 11:31 Simon Josefsson [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873ai9dp1a.fsf@mocca.josefsson.org \
    --to=simon@josefsson.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).