X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/18dccf2fe359926ac1c1bf1c5cc51f68b65cef46..8619447c9deaf234f986d645a2b4330959ab00e5:/man/mhfixmsg.man diff --git a/man/mhfixmsg.man b/man/mhfixmsg.man index 3afb4ba8..17fca716 100644 --- a/man/mhfixmsg.man +++ b/man/mhfixmsg.man @@ -1,4 +1,4 @@ -.TH MHFIXMSG %manext1% "December 25, 2014" "%nmhversion%" +.TH MHFIXMSG %manext1% "February 20, 2016" "%nmhversion%" .\" .\" %nmhwarning% .\" @@ -16,6 +16,8 @@ mhfixmsg \- rewrite MIME messages with various transformations .RB [ \-decodetext 8bit/7bit | .BR \-nodecodetext ] +.RB [ \-decodetypes +.IR "type/[subtype][,...]" ] .RB [ \-textcharset .I charset .RB "| " \-notextcharset ] @@ -72,6 +74,24 @@ linefeed character is removed from text parts encoded in ASCII, ISO-8859-x, UTF-8, or Windows-12xx. .PP The +.B \-decodetypes +switch specifies the message parts, by type and optionally subtype, +to which +.B \-decodetext +applies. Its argument is a comma-separated list of type/subtype +elements. If an element does not contain a subtype, then +.B \-decodetext +applies to all subtypes of the type. The default is +.B \-decodetypes +.IR text ; +it can be overridden, e.g., with +.B \-decodetypes +.I text/plain +to restrict +.B \-decodetext +to just text/plain parts. +.PP +The .B \-textcharset switch specifies that all text/plain parts of the message(s) should be converted to @@ -104,6 +124,17 @@ inserts that text/plain part at the beginning of the containing multipart/alternative part, if present. If not, it creates a multipart/alternative part. .PP +With the +.B \-reformat +switch, multipart/related parts are handled differently than +multipart/alternative. If the multipart/related has only a single +part that is not text/plain and can be converted to text/plain, a +text/plain part is added and the type of the part is changed to +multipart/alternative. If the multipart/related has more than one +part but does not have a text/plain part, +.B mhfixmsg +tries to add one. +.PP The .B \-replacetextplain switch broadens the applicability of @@ -246,6 +277,7 @@ content type and/or encoding as follows: .nf .ta \w'\-fixboundary 'u \-decodetext base64 and quoted-printable encoded text parts +\-decodetypes limits parts to which -decodetext applies \-textcharset text/plain parts \-reformat text parts that are not text/plain \-fixboundary outermost multipart part @@ -376,6 +408,7 @@ is checked. .RB ` +folder "' defaults to the current folder" .RB ` msgs "' defaults to cur" .RB ` "\-decodetext 8bit"' +.RB ` "\-decodetypes text"' .RB ` \-notextcharset ' .RB ` \-reformat ' .RB ` \-noreplacetextplain '