On Tue, Jan 18, 2022 at 12:28:42PM -0800, Kevin J. McCarthy wrote: > On Tue, Jan 18, 2022 at 05:44:04PM +0000, Chris Green wrote: > > Is there a straightforward way to do this? It's easy enough to use a > > message hook to catch the messages from the site but what do I need to > > do then to convert the messages and feed them into the pager? > > You could use the mailcap 'test=' field combined with an environment > variable set/unset by the hook. > > message-hook ~A 'unsetenv MUTT_USE_ALT_VIEWER' > message-hook ~C 'your-l...@example.com' 'setenv MUTT_USE_ALT_VIEWER yes' > > In .mailcap: > > text/html; altviewer %s; test=[ -n "$MUTT_USE_ALT_VIEWER" ]; copiousoutput; > nametemplate=%s.html > text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html > > Another idea might be to swap $mailcap_path to use another mailcap file for > that mailing list. > Thanks, yes, those are possibilities. I'll experiment. :-)
-- Chris Green