Manual Page Search Parameters

MSCAN(1) General Commands Manual MSCAN(1)

generate one-line message summaries

mscan [-I] [-n] [-v] [-f format] msgs ...


mscan prints a one line summary for each message. (See mmsg(7) for the message argument syntax.)

If no msgs are specified, mscan reads filenames from the standard input, or scans the mails in the current sequence if used interactively.

By default, mscan will spawn a pager on its output when used interactively. See ENVIRONMENT for details on how to control this behaviour.

The default format is

%c%u%r %-3n %10d %17f %t %2i%s

that is, for each message, mscan prints relevant flags, the sequence number (if applicable), the date, the originator, and the subject of the message (possibly indented). A default mscan format may be specified in the user's mblaze-profile(5).

The options are as follows:

Force ISO date output, even for ‘%d’.
Only print message numbers (or filenames, if the message is not in the current sequence).
Print how many messages were scanned to standard error.
Format according to the string format, inspired by printf(3).

The following formatting codes may be used (wd overrides the default width):

A plain ‘%’.
Human-readable size of the message (in kilobytes).
A ‘>’ on the current message, otherwise a blank.
Adaptive date of the message. When wd is greater or equal to 19, the timestamp is shown in dottime format (
ISO date of the message (year, month, day). When wd is greater or equal to 16, the hour-minute timestamp will also be shown. When wd is greater or equal to 19, seconds will also be shown.
The ‘From:’ (or ‘To:’, if the message is from us).
The maildir folder the message resides in.
wd (default: 1) spaces per indentation depth in the thread tree.
The ‘Message-ID:’ of the message.
The raw maildir flags of the message.
The number of the message in the current sequence.
A ‘-’ on a replied-to message, or a ‘:’ on a forwarded message, or a blank.
The filename of the message.
The subject of the message (defaults to remaining width).
The subject of the message (defaults to remaining width), with leading ‘Re:’, ‘Fwd:’ etc. stripped.
A ‘>’ if you are in ‘To:’, a ‘+’ if you are in ‘Cc:’, a ‘:’ if you are in ‘Resent-To:’, or a blank.
An ‘*’ on a flagged message, a ‘.’ on an unseen message, an ‘x’ on a trashed message, or a blank.

The current message
An unseen message
A trashed message
A flagged message
A replied-to message

You are in ‘To:
You are in ‘Cc:
You are in ‘Resent-To:

Any non-empty value of the environment variable MBLAZE_PAGER is used instead of the standard pagination program, specified in PAGER. When empty, or set to ‘cat’, no pager is spawned.

The mscan utility exits 0 on success, and >0 if an error occurs.

mblaze-profile(5), mmsg(7)

Leah Neukirchen <>

mscan 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.

January 2, 2020 x86_64