MSHOW(1)
π MSHOW(1) π
okay so bestie, gather round, because mshow is literally that girl π
β she renders your messages and extracts MIME parts, and she does it beautifully. this is a General Commands Manual situation, so let's get into it β¨
πΈ NAME πΈ
mshow β render messages and extract MIME parts
π¦ SYNOPSIS π¦
mshow [-h headers] [-A mimetypes] [-nqrBFHLN] [msgs ...]
mshow -x msg parts ...
mshow -O msg parts ...
mshow -t msgs ...
mshow -R msg
π DESCRIPTION π
so mshow renders the specified msgs to standard output, by default, periodt. (and if you're wondering about the whole message argument situation, see mmsg(7) for all the deets β it's giving essential reading π«Ά)
and like, if you're using it interactively and you didn't specify any msgs, mshow just goes ahead and displays the current message with colorization and a pager. main character energy, honestly π
the options are as follows, and yes, we're going through all of them:
β¨ OPTIONS β¨
-hheaders β Display the headers in the colon-separated list headers, instead of the default headersfrom:subject:to:cc:date:reply-to:. iconic defaults, ngl π-Amimetypes β Definemultipart/alternativepreference. mimetypes is a colon-separated list of MIME types which will be preferred, in the order given, when renderingmultipart/alternativeparts. If no MIME type matches, the last MIME part will be rendered.
and like, when mimetypes is all, mshow will render all parts of a multipart/alternative part. slay.
Defaults to text/plain:text/html. π
-nβ Don't update the current message link.-qβ Don't render the body, stop after header output. sometimes you just want the vibes, not the content, yk?-rβ Don't render the body, print raw body. > β οΈ This may be dangerous to use on a tty. like, fr fr, be careful bestie π-Bβ Decode encoded-words also in MIME parameters in direct violation of RFC 2047. This is useful if the attachment names look like=?UTF-8?Q?stuff?=. yes, we're being rebellious, and honestly? valid π-Fβ Don't apply filters to MIME parts.-Hβ Don't decode the headers, print all raw headers. > β οΈ This may be dangerous to use on a tty. again, watch out π-Lβ Don't filter the headers, print all decoded headers.-Nβ Don't show MIME structure markers.-xmsg β Switch to extraction mode: extract parts from the message msg into files. parts can be specified by number, filename orfnmatch(3)pattern. If no parts are specified, extracts all attachments with a filename. very demure, very mindful extraction π-Omsg β Like-xbut write to standard output. > β οΈ This may be dangerous to use on a tty. and when used together with-r, the whole part is raw, that is, un-decoded and including MIME part headers. so raw, so real π₯-tβ Switch to list mode: list all MIME parts of each msg. the way this just lists everything? obsessed.-Rmsg β Render the text parts from msg, suitable for use in a reply. perfect for when you need to quote someone but make it cute π
π§ FILTERS π§
mshow, by default, decodes all text/*, message/rfc822 and multipart/* parts, and re-encodes them into UTF-8 if necessary. lowkey doing the most so you don't have to π«Ά
other filters can be specified in the file ${MBLAZE:-$HOME/.mblaze}/filter (or via MAILFILTER), in the format:
type/subtype: command
or
type: command
mshow will then spawn a pipe to command, write the MIME part to standard input and display the output. the environment variable PIPE_CHARSET will be set to the charset declared in the MIME part, if known. bestie communication, honestly β¨
filters can communicate with mshow using their exit status, and this is where it gets technical:
0β The output is printed as plain text.62β The output is printed raw, without escaping.63β Behave as if the filter never ran.64β The output is an RFC 5322 message that should be rendered again.65 to 80β Render the n-64th part of thistext/multipartpart.
all other exit statuses are regarded as errors. so like, stick to the script, okay? π
π ENVIRONMENT π
MAILFILTERβ Path to an alternative filter file.MBLAZE_NOCOLORβ If non-empty,mshowwill not spawn a colorization filter. (but like, why would you want that? the color is the whole point π)MBLAZE_PAGERβ Any non-empty value of the environment variableMBLAZE_PAGERis used instead of the standard pagination program, specified inPAGER. When empty or set tocat, no pager is spawned. iykyk π
β EXIT STATUS β
The mshow utility exits 0 on success, and >0 if an error occurs. simple, clean, iconic.
π SEE ALSO π
π AUTHORS π
Leah Neukirchen <leah@vuxu.org> β an absolute legend π«Ά
π LICENSE π
mshow is in the public domain.
To the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.
http://creativecommons.org/publicdomain/zero/1.0/
and that's the whole thing, bestie! this page is from the Debian source, dated January 17, 2021, and it's giving classic manpage realness π go forth and render those messages, you've got this πΈβ¨
π¦ where this page comes from
- alpine 3.24: mblaze-doc 1.4-r0 Β· CC0-1.0
- nixos 26.05: mblaze 1.4
- nixpkgs unstable: mblaze 1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms