Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

MH Frequently Asked Questions (FAQ) with Answers
Section - 03.05 Why doesn't "show" display all of a MIME message?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]


Top Document: MH Frequently Asked Questions (FAQ) with Answers
Previous Document: 03.04 Why don't MH format commands such as %(friendly) work?
Next Document: 03.06 Can I get show not to run "less" so much on MIME messages?
See reader questions & answers on this topic! - Help others by sharing your knowledge
Date: Mon, 1 Aug 1994 00:00:00 -0800

  It's not the fault of the "show" command or of MH in general. It's
  your system's configuration. Check the $MHLIB/mhn.defaults
  (mhn_defaults) file; if it doesn't have defaults for all content
  types, add them. Or, if you can't (or shouldn't) change mhn.defaults
  (mhn_defaults), you can put default entries in your MH profile file
  for those content types.

  Here's the part of the mhshow(1) (mhn(1)) manpage that explains how
  content types are handled. The example is for mhshow, but if you're
  using mhn, you'd replace mhshow with mhn:

    First, mhshow will look for an entry of the form:

      mhshow-show-<type>/<subtype>

    to determine the command to use to display the content. If this
    isn't found, mhshow will look for an entry of the form:

      mhshow-show-<type>

    to determine the display command. If this isn't found, mhshow has
    two default values:

      mhshow-show-text/plain: %pmoreproc '%F'
      mhshow-show-message/rfc822: %pshow -file '%F'

    If neither apply, mhshow will check to see if the message has a
    application/octet-stream content with parameter "type=tar". If so,
    mhshow will use an appropriate command. If not, mhshow will
    complain.

  So, add defaults that cover the types MH doesn't handle right now
  (or doesn't handle the way you want it to). Your defaults will
  override corresponding defaults in the $MHLIB/mhn.defaults
  (mhn_defaults) file. For example, if you don't have an HTML
  editor/browser on your system, you could tell MH to use the "less"
  paginator for HTML message parts:

    mhshow-show-text/x-html: less %F

  You can put that line in your MH profile.

  You can even set different defaults for different terminal types
  (say, your VT100 at home and your X setup at work). Make a file in
  the same format as mhn.defaults (mhn_defaults); store its pathname
  in the MHSHOW (MHN) environment variable. Add a test to your shell
  setup file (.bash_profile, .profile, .login) that tests the value of
  the TERM variable -- and, if you have an mhshow (mhn) setup file for
  that terminal type, store its pathname in the MHSHOW (MHN) variable.

  See also MH book sections 6.2.3, 9.4.4, 9.4.5, or the URLs:

    http://rand-mh.sourceforge.net/book/mh/remime.html#HomhShMe
    http://rand-mh.sourceforge.net/book/mh/confmhn.html#ShComhsh
    http://rand-mh.sourceforge.net/book/mh/confmhn.html#DiOChSmc

From: Michael K. Neylon <mneylon at engin.umich.edu>
Date: Tue, 1 Nov 1994 00:00:00 -0800

  If you are not using the X Window System, you may have to add this
  line to your MH profile:

    mhshow-charset-iso-8859-1: /bin/sh -c '%s'			# nmh
    mhn-charset-iso-8859-1: /bin/sh -c '%s'			# MH

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: MH Frequently Asked Questions (FAQ) with Answers
Previous Document: 03.04 Why don't MH format commands such as %(friendly) work?
Next Document: 03.06 Can I get show not to run "less" so much on MIME messages?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
Bill Wohler <wohler@newt.com>





Last Update March 27 2014 @ 02:11 PM