Steven wrote:

> >> Is there a way to get mhfixmsg to decode the base64 and then run it through
> >> tidy with a given set of command-line options?
> >
> >Yes, via mhfixmsg-format-text/html.  See the mhfixmsg and mhshow man pages.
>
> I did read those man pages, but perhaps I'm still failing to understand
> parts of them.  I do know how mhfixmsg-format-text/html specifies the
> command which generates the text/plain part from the text/html part, but
> I don't see how to do that and also reformat the text/html part.

Maybe "reformat" is a misleading name.  It doesn't change a
text/html part, for example, in place.  Instead, it creates a
text/plain version and inserts that in a new (with the default
-noreplacetextplain) text/plain MIME part.  With -replacetextplain,
the content in a corresponding, existing text/plain part is
replaced.

mhfixmsg takes care of the decoding from base64, then feeds the
decoded content to the command specified by
mhfixmsg-format-text/html.  That command can be whatever shell
command, including a pipeline, you'd like.  So you should be able to
do whatever formatting you wish.  The result is placed in the
text/plain part.

David

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to