using metamail to strip incoming messages to text

Rick Demattia <[email protected]> Tue, 21 Jun 2005 22:29:25 -0400 (EDT)
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
Has anyone had success using metamail -d and a severely pruned mailcap file, to
process incoming messages to plain text before other list processing?  A number of
my subscribers are simply unable to understand the concept of plain text, yet I
don't want to permit text+HTML and assorted garbage to be distributed by the list.

I have been tinkering a little with a mailcap:

	application/* ; cat %s >> /dev/null
	image/* ; cat %s >> /dev/null
	text/enriched ; richtext -e %s
	text/html ; cat %s >> /dev/null
	text/richtext ; richtext %s

Interactively
	MAILCAPS=/that/specific/mailcap metamail -d < message-with-image-attached

seems to offer possibilities.

I know there are other solutions to this that use perhaps perl or some other tools,
but I'd like to use the stock metamail distribution to solve this if it will.

Has anyone experimented with or implemented something like this?
-- 
Rick DeMattia <[email protected]>
The secret of the universe is|^&*||x|NO CARRIER