On Sun, 08 Nov 2015 15:18:22 +0100, Harald Geyer writes: >"run-mailcap --action=view" is meant to start a pager, which is not >what mhshow wants to do.
why not? where does it say that? view is meant to do whatever is necessary to present the material to the user. >mhshow wants formatted output that can be >passed on to it's own pager (moreproc). not necessarily; look at the examples in man mhshow for, say, audio or image/*: mhshow-show-audio/basic: raw2audio 2>/dev/null | play mhshow-show-image: xv %f mhshow-show-application/PostScript: lpr -Pps there is no paging by nmh involved in any of these. there is nothing in the mhshow docs that indicates that a pager supplied by mhshow must be used. >x/console/whatever use, but nmh (and sensible-tools) are messing >things up, because they try to do part of the job themselfs. I think >the easy way to fix this is to dump run-mailcap down so it doesn't >interfere with what nmh is doing. to be honest i have not yet seen any of the interference problems you're having. with the default mhn.defaults, no special .mh_profile entries whatsoever, and a pure html email (yuck), for me mhshow a) fires up my real browser if i have a $DISPLAY, b) falls back to showing me the transmogrified text (via w3m) and paged by less if there is no $DISPLAY. if i switch the mhn.defaults to --action=cat, then case a) never happens anymore, because action cat ignores all mailcap entries but the ones with 'copiousoutput' and not many have that set, and in the remaining case b) no paging whatsoever is performed. i find this latter setup highly undesirable. >I think your explanation in the News.Debian is a good one. ok, then i'll expand that in the next upload to mention that people should also consider run-mailcap --action=cat as alternative to the defaults... >configuration probably works on many sytems - but only by chance, not >by being right. ...because i disagree with your opinion that there is anything wrong with delegating show actions to run-mailcap --action=view. so, shall we agree to disagree? i just don't think there's a single setup that'll match everybody's preferences. regards az -- Alexander Zangerl + GPG Key 0xB963BD5F + http://snafu.priv.at/ On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. -- Charles Babbage
signature.asc
Description: Digital Signature