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.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to