9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.61k stars 319 forks source link

htmlfmt: add -I flag to suppress printing of image anchors. #594

Open rastagraffix opened 1 year ago

rastagraffix commented 1 year ago

This patch adds a -I flag to htmlfmt that suppresses printing of image anchors.

I use 'htmlfmt -aI' as my MH display filter for text/html parts in mail messages. Not printing the image tags eliminates endless noise from people/sites that insist on putting nauseatingly large numbers of pointless image blobs in their messages. -I makes those messages (somewhat) readable.

I'm not wedded to '-I' as the flag, and some might argue a slightly more general mechanism could be useful (e.g. forms display in email is pointless as well, but I have yet to run up against one of those in an email message). But as it is, this patch has made my life more bearable for the last five+ years :-)