Examples of mhn_defaults

The defaults for the ways in which mhn displays and stores multi-media e-mail messages can be found in the file mhn_defaults, located in the MH library directory. To find out which directory is the MH library directory, you can type this command:

% mhparam mhlproc
This prints out the path of the mhl program. In MH 6.8, mhl is in the MH library directory. The mhn_defaults file is in the same directory.

For your perusal, here are some example mhn_defaults files in use at UC Irvine's ICS Department and at Irvine Compiler Corp.

Any of the lines in these files can be picked up and modified for inclusion in your .mh_profile, or in your mhn profile named by the environment variable $MHN.

The various ``%'' escape codes used in these profiles are described in section [*].

UCI ICS's mhn_defaults:

mhn-charset-iso-8859-1: xterm 
                        -fn '-*-*-medium-r-normal-*-*-120-*-*-c-*-iso8859-*' 
                        -e %s
mhn-show-application/PostScript:  %plpr -Pps
mhn-show-image:                   %p/usr/bs/X11R5/bin/xv -geometry =-0+0 '%f'
mhn-show-text/richtext:           %p/usr/local/lib/mh-6.8/rt2raw '%f'
mhn-store-application/PostScript: %m%P.ps
mhn-store-text:                   %m%P.txt

Note that in the absence of a subtype indicator, the line applies to all subtypes. The line for mhn-show-image applies to all image types, such as image/gif and image/jpeg.

ICC's mhn_defaults for Sun Microsystems SPARCstations:

mhn-compose-audio/basic:          /usr/local/bin/rec.sparc | 
                                        /usr/demo/SOUND/raw2audio -F
mhn-compose-audio/x-next:         /usr/local/bin/rec.sparc
mhn-show-application/PostScript:  %plpr -Pps
mhn-show-audio/basic:             %p/usr/demo/SOUND/raw2audio 
                                        2>/dev/null | play
mhn-show-audio/x-next:            %p/usr/demo/SOUND/play
mhn-store-application/PostScript: %m%P.ps
mhn-store-audio/basic:            | /usr/demo/SOUND/raw2audio -e ulaw 
                                        -s 8000 -c 1
                                        > %m%P.au
mhn-store-audio/x-next:           %m%P.au
mhn-store-text:                   %m%P.txt
mhn-cache:                        /r/mhn-cache

The rec.sparc program, a small perl script, is described further in appendix [*].

ICC's mhn_defaults for HP 9000/700 series workstations:

mhn-compose-audio/basic:          recorder '%F' -u -pause
mhn-compose-audio/x-next:         recorder '%F' -au -pause
mhn-show-application/PostScript:  %plp -dpsjetdup
mhn-show-audio/basic:             splayer -u
mhn-show-audio/x-next:            splayer -au
mhn-show-image:                   %pxv -geometry =-0+0 '%f'
mhn-show-message/rfc822:          show -file '%F'
mhn-show-text/richtext:           richtext -p '%F'
mhn-show-text/plain:              more '%F'
mhn-store-application/PostScript: %m%P.ps
mhn-store-audio/basic:            %m%P.u
mhn-store-audio/x-next:           %m%P.au
mhn-store-text:                   %m%P.txt
mhn-cache:                        /r/mhn-cache