X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=man%2Fmh-profile.man5;h=b90cd971e2dddd0fba9dd7ad14df002e52292e8e;hp=2f67c6392138ec459a3279cc03757ad92d934237;hb=4b5944268ea0da7bb30598a27857304758ea9b44;hpb=fb0594cb913cab5e14e2c295b79eb48cc675bbbf diff --git a/man/mh-profile.man5 b/man/mh-profile.man5 index 2f67c63..b90cd97 100644 --- a/man/mh-profile.man5 +++ b/man/mh-profile.man5 @@ -181,6 +181,19 @@ If you like to type a lot, name it `X-MH-Attachment'. (profile, default: `Attach') .RE .PP +.BR Mime-Type-Query : +file \-b \-\-mime +.RS 5 +A command that prints the MIME type of a file. +The file name gets appended to the command line. +Note: Older GNU versions of file(1) won't generate the desired +output. GNU file-4.26, for instance, omits a required semicolon. +GNU file-5.04 is known to work. Non-GNU version likely need different +options or don't provide this function at all. Alternatively, you can use +.BR print\-mimetype , +which is part of mmh, but guesses MIME types by file name extensions only. +.RE +.PP .BR Msg\-Protect : 644 .RS 5