nmh-workers
[Top] [All Lists]

Re: crufty mhn.default.sh stuff

2022-01-30 08:46:48
I committed the changes to mhn.defaults.sh, see below.  This may
affect the helper applications that mhshow(1) uses after your
next nmh update.

Users can continue to override in their profiles by adding lines
such as:
    mhshow-show-text/html: firefox --new-window %F; sleep 0.2

The -[no]textonly, -[no]inlineonly, and -type switches to mhshow
control what message parts it attempts to show.

David


commit 54c9b8ee126b284c25b8ae3c7e600638fda2cb06
Author: David Levine <levinedl@acm.org>
Date:   Sun Jan 30 09:26:44 2022 -0500

    Updated mhshow(1) helper applications from Old to New as shown below.

    [app1, app2, ... appN] shows the order that mhn.defaults.sh uses
    when looking for the helper for the specified content type and
    optional subtype.

    Support for audio content is only added if /dev/audioIU or /dev/audio
    exists.

    Old helper appplications
    ========================
    [acroread, okular, evince, xpdf, gv]: application/pdf
    [okular, evince, gv]: application/postscript
    [ivs_replay]: application/x-ivs
    [soffice]: application/msword
    [splayer, raw2audio, cat >/dev/audio]: audio/basic
    [adpcm_dec, play]: audio/x-next
    [xv, netpbm + djpeg + xwud]: image
    [w3m, lynx, elinks]: text/html
    [richtext, rt2raw]: text/richtext
    [mpeg_play]: video/mpeg

    Changes:
    1. replaced use of netpbm with mpv --keep-open, preferring mpv over xv
    2. replaced mpeg_play with [mpv, mplayer] for video (not just video/mpeg)
    3. moved acroread to end of application/pdf list
    4. removed application/x-ivs support
    5. removed text/richtext support
    6. added mhshow-suffix-video.mp4 to mhn.defaults

    New helper appplications
    ========================
    [okular, evince, xpdf, gv, acroread]: application/pdf
    [okular, evince, gv]: application/postscript
    [soffice]: application/msword
    [splayer, raw2audio, cat >/dev/audio]: audio/basic
    [adpcm_dec, play]: audio/x-next
    [mpv --keep-open, xv]: image
    [w3m, lynx, elinks]: text/html
    [mpv, mplayer]: video

<Prev in Thread] Current Thread [Next in Thread>