Re: Question as I haven't been paying attention
Bakul wrote: > Looking through git log, the following may have be interest: > > commit 54c9b8ee126b284c25b8ae3c7e600638fda2cb06 > Author: David Levine > Date: Sun Jan 30 09:26:44 2022 -0500 That commit cleaned up the helper applications, some of which were very out of date. I doubt it would be helpful to look at it. Ken mentioned the man pages. The mhshow(1) man page should be helpful. I have these in my profile: showproc: less mhshow: -noconcat -notextonly -noinlineonly mhshow-show-text/html: firefox --new-window %F 2>/dev/null; sleep 0.2 show: -noconcat David > On Dec 7, 2022, at 3:50 PM, Jon Steinhart wrote: > > > > Bakul Shah writes: > >> On Dec 7, 2022, at 2:32 PM, Jon Steinhart wrote: > >>> > >>> Just upgraded my system to FC37 which incldes nmh 1.7.1. > >>> show now runs everything through more which I hate. > >>> Can't seem to disable it, even with --showproc cat. > >>> Can someone save the trouble of having to figure this > >>> out from the source code? > >> > >> I have > >> > >> showproc:/usr/bin/less > >> > >> in my ~/.mh_profile. Shouldn't matter but this is on FreeBSD. > > > > Huh. OK, adding showproc: /bin/cat seemed to do it. Thanks. > > > > Oops, no it didn't. It works for your messages but that's > > because it's text/plain, doesn't work on anything else such > > as an html doc that I run through w3m to show as ascii. > > > > Can whoever made this change explain how to turn it off? > > I built a fresh version (commithash 0e68a78e44d03c) and ran it > through ktrace to see what gets called. I have > > mhshow-show-text/html: charset=%{charset}; > w3m ${charset:+-I $charset} -T text/html %F > > in ~/.mh_profile. mhshow calls w3m to format the text > and then calls less to display the formatted text. It > also calls mhl. Setting -showproc has no impact, it still > goes through less. > > You can try setting -showmimeproc to /bin/cat but that > is probably not what you want for html! > > Looking through git log, the following may have be interest: > > commit 54c9b8ee126b284c25b8ae3c7e600638fda2cb06 > Author: David Levine > Date: Sun Jan 30 09:26:44 2022 -0500 > > > [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
Re: Question as I haven't been paying attention [ really moreproc ]
Aha, had nothing to do with nmh at all. Looks like some cretin changed the default behavior of more so that it looks like less (more or less) and that was the cause of the problem. Adding export MORE='-e' to my .bashrc fixed it, no change to moreproc in .mh_profile needed. I gues when people are short on ideas they have to break stuff that's been working for eons. Jon
Re: Question as I haven't been paying attention
Ken Hornstein writes: > >Just upgraded my system to FC37 which incldes nmh 1.7.1. > >show now runs everything through more which I hate. > >Can't seem to disable it, even with --showproc cat. > >Can someone save the trouble of having to figure this > >out from the source code? > > Geez Jon, what version of nmh were you using before? > > I suspect you're running into the case where if show encounters a MIME > message it runs it through mhshow. mhshow doesn't support -showproc, > because it's kind of doing the work of showproc directly. But setting > "moreproc: cat" in your profile should work (it does; I just tested > it). What mhshow ends up doing is kind of complicated (because MIME is > complicated) so overriding showproc wouldn't make sense for it, but I > could see a case for providing a switch to override the default pager. > If you wish to disable the automatic running of mhshow by show, you can > use -nocheckmime and that should get you back to show handling messages > directly if that's what you prefer. I think this is even all in the man > pages, so you wouldn't need to look in the source code unless you really > wanted to :-) > > --Ken Well, don't remember. But I don't update too frequently because things that have just worked tend to break which is why I'm spending the whole day trying to figure out how the lastest replacement for the latest replacement for the latest replacement of audio works since it doesn't. But thanks, your fix did it. Jon
Re: Question as I haven't been paying attention
>Just upgraded my system to FC37 which incldes nmh 1.7.1. >show now runs everything through more which I hate. >Can't seem to disable it, even with --showproc cat. >Can someone save the trouble of having to figure this >out from the source code? Geez Jon, what version of nmh were you using before? I suspect you're running into the case where if show encounters a MIME message it runs it through mhshow. mhshow doesn't support -showproc, because it's kind of doing the work of showproc directly. But setting "moreproc: cat" in your profile should work (it does; I just tested it). What mhshow ends up doing is kind of complicated (because MIME is complicated) so overriding showproc wouldn't make sense for it, but I could see a case for providing a switch to override the default pager. If you wish to disable the automatic running of mhshow by show, you can use -nocheckmime and that should get you back to show handling messages directly if that's what you prefer. I think this is even all in the man pages, so you wouldn't need to look in the source code unless you really wanted to :-) --Ken
Re: Question as I haven't been paying attention
On Dec 7, 2022, at 3:50 PM, Jon Steinhart wrote: > > Bakul Shah writes: >> On Dec 7, 2022, at 2:32 PM, Jon Steinhart wrote: >>> >>> Just upgraded my system to FC37 which incldes nmh 1.7.1. >>> show now runs everything through more which I hate. >>> Can't seem to disable it, even with --showproc cat. >>> Can someone save the trouble of having to figure this >>> out from the source code? >> >> I have >> >> showproc:/usr/bin/less >> >> in my ~/.mh_profile. Shouldn't matter but this is on FreeBSD. > > Huh. OK, adding showproc: /bin/cat seemed to do it. Thanks. > > Oops, no it didn't. It works for your messages but that's > because it's text/plain, doesn't work on anything else such > as an html doc that I run through w3m to show as ascii. > > Can whoever made this change explain how to turn it off? I built a fresh version (commithash 0e68a78e44d03c) and ran it through ktrace to see what gets called. I have mhshow-show-text/html: charset=%{charset}; w3m ${charset:+-I $charset} -T text/html %F in ~/.mh_profile. mhshow calls w3m to format the text and then calls less to display the formatted text. It also calls mhl. Setting -showproc has no impact, it still goes through less. You can try setting -showmimeproc to /bin/cat but that is probably not what you want for html! Looking through git log, the following may have be interest: commit 54c9b8ee126b284c25b8ae3c7e600638fda2cb06 Author: David Levine Date: Sun Jan 30 09:26:44 2022 -0500 [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
Re: Question as I haven't been paying attention
Bakul Shah writes: > On Dec 7, 2022, at 2:32 PM, Jon Steinhart wrote: > > > > Just upgraded my system to FC37 which incldes nmh 1.7.1. > > show now runs everything through more which I hate. > > Can't seem to disable it, even with --showproc cat. > > Can someone save the trouble of having to figure this > > out from the source code? > > I have > > showproc:/usr/bin/less > > in my ~/.mh_profile. Shouldn't matter but this is on FreeBSD. Huh. OK, adding showproc: /bin/cat seemed to do it. Thanks. Oops, no it didn't. It works for your messages but that's because it's text/plain, doesn't work on anything else such as an html doc that I run through w3m to show as ascii. Can whoever made this change explain how to turn it off? Thanks, Jon
Re: Question as I haven't been paying attention
On Dec 7, 2022, at 2:32 PM, Jon Steinhart wrote: > > Just upgraded my system to FC37 which incldes nmh 1.7.1. > show now runs everything through more which I hate. > Can't seem to disable it, even with --showproc cat. > Can someone save the trouble of having to figure this > out from the source code? I have showproc:/usr/bin/less in my ~/.mh_profile. Shouldn't matter but this is on FreeBSD.
Question as I haven't been paying attention
Just upgraded my system to FC37 which incldes nmh 1.7.1. show now runs everything through more which I hate. Can't seem to disable it, even with --showproc cat. Can someone save the trouble of having to figure this out from the source code? Thanks, Jon