update mailcap example and add it to the man page as well - webdump - HTML to plain-text converter for webpages (HTM) git clone git://git.codemadness.org/webdump (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 62bfd8b37f4b929e5f5a0f06c4cf90e7e07387a9 (DIR) parent 0626e06482426d2fe329fd9df5b1f6fb3b946e2a (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 8 Sep 2023 15:42:10 +0200 update mailcap example and add it to the man page as well Diffstat: M README | 10 +++------- M webdump.1 | 8 ++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) --- (DIR) diff --git a/README b/README @@ -65,14 +65,10 @@ Features Examples -------- -To use webdump as a HTML filter for example in mutt, change in ~/.mailcap: +To use webdump as a HTML to text filter for example in the mutt mail client, +change in ~/.mailcap: - text/html; /home/user/.config/scripts/mutt/viewhtml.sh %s; copiousoutput; nametemplate=%s.html - -The viewhtml.sh could be something like: - - #!/bin/sh - webdump -r -l < "$1" + text/html; webdump -i -l -r < %s; needsterminal; copiousoutput In mutt you should then add: (DIR) diff --git a/webdump.1 b/webdump.1 @@ -93,6 +93,14 @@ curl -s "$url" | webdump -8 -a -i -l -r -b "$url" | less -R curl -s "$url" | webdump -s 'main' -8 -a -i -l -r -b "$url" | less -R .Ed +.Pp +To use +.Nm +as a HTML to text filter for example in the mutt mail client, change in +~/.mailcap: +.Bd -literal +text/html; webdump -i -l -r < %s; needsterminal; copiousoutput +.Ed .Sh SEE ALSO .Xr curl 1 , .Xr xmllint 1 ,