nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] why does mhfixmsg dislike long text lines?


From: David Levine
Subject: Re: [Nmh-workers] why does mhfixmsg dislike long text lines?
Date: Wed, 24 Jan 2018 20:56:21 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]