2020-01-02 15:15:35 +00:00
|
|
|
.Dd January 2, 2020
|
2016-07-22 19:36:46 +00:00
|
|
|
.Dt MSCAN 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mscan
|
2018-02-04 19:15:59 +00:00
|
|
|
.Nd generate one-line message summaries
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2018-09-25 11:59:58 +00:00
|
|
|
.Op Fl I
|
2016-07-31 17:42:30 +00:00
|
|
|
.Op Fl n
|
2018-09-25 11:59:58 +00:00
|
|
|
.Op Fl v
|
2016-08-04 18:00:55 +00:00
|
|
|
.Op Fl f Ar format
|
2016-07-22 19:36:46 +00:00
|
|
|
.Ar msgs\ ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
prints a one line summary for each message.
|
2018-02-04 19:15:59 +00:00
|
|
|
.Po
|
2016-07-22 19:36:46 +00:00
|
|
|
See
|
2016-07-22 19:43:03 +00:00
|
|
|
.Xr mmsg 7
|
2016-07-22 19:36:46 +00:00
|
|
|
for the message argument syntax.
|
2018-02-04 19:15:59 +00:00
|
|
|
.Pc
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pp
|
|
|
|
If no
|
|
|
|
.Ar msgs
|
2017-07-04 21:33:20 +00:00
|
|
|
are specified,
|
2016-07-22 19:36:46 +00:00
|
|
|
.Nm
|
2017-07-04 21:33:20 +00:00
|
|
|
reads filenames from the standard input,
|
|
|
|
or scans the mails in the current sequence if used interactively.
|
2016-07-22 19:36:46 +00:00
|
|
|
.Pp
|
2016-08-04 18:00:55 +00:00
|
|
|
By default,
|
2017-07-04 21:33:20 +00:00
|
|
|
.Nm
|
|
|
|
will spawn a pager on its output when used interactively.
|
|
|
|
See
|
|
|
|
.Sx ENVIRONMENT
|
|
|
|
for details on how to control this behaviour.
|
|
|
|
.Pp
|
|
|
|
The default
|
2016-08-04 18:00:55 +00:00
|
|
|
.Ar format
|
|
|
|
is
|
2018-02-04 19:15:59 +00:00
|
|
|
.Pp
|
|
|
|
.Dl %c%u%r %-3n %10d %17f %t %2i%s
|
|
|
|
.Pp
|
2016-08-04 18:00:55 +00:00
|
|
|
that is, for each message,
|
2016-07-22 19:36:46 +00:00
|
|
|
.Nm
|
2017-07-04 21:33:20 +00:00
|
|
|
prints relevant flags,
|
2018-02-04 19:15:59 +00:00
|
|
|
the sequence number
|
|
|
|
.Pq if applicable ,
|
2016-07-22 19:36:46 +00:00
|
|
|
the date,
|
|
|
|
the originator,
|
2018-02-04 19:15:59 +00:00
|
|
|
and the subject of the message
|
|
|
|
.Pq possibly indented .
|
2017-07-04 21:33:20 +00:00
|
|
|
A default
|
|
|
|
.Nm
|
|
|
|
format may be specified in the user's
|
|
|
|
.Xr mblaze-profile 5 .
|
2016-07-27 16:06:55 +00:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl I
|
2016-08-04 18:00:55 +00:00
|
|
|
Force ISO date output,
|
|
|
|
even for
|
2016-08-11 18:37:39 +00:00
|
|
|
.Sq Cm "%d" .
|
2018-09-25 11:59:58 +00:00
|
|
|
.It Fl n
|
|
|
|
Only print message numbers
|
|
|
|
.Pq or filenames, if the message is not in the current sequence .
|
|
|
|
.It Fl v
|
|
|
|
Print how many messages were scanned to standard error.
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Fl f Ar format
|
|
|
|
Format according to the string
|
|
|
|
.Ar format ,
|
|
|
|
inspired by
|
|
|
|
.Xr printf 3 .
|
|
|
|
.Pp
|
2017-07-04 21:33:20 +00:00
|
|
|
The following formatting codes may be used
|
2018-02-04 19:15:59 +00:00
|
|
|
.Po
|
|
|
|
.Ar wd
|
|
|
|
overrides the default width
|
|
|
|
.Pc :
|
2016-08-04 18:00:55 +00:00
|
|
|
.Bl -tag -width Ds
|
2017-05-17 12:05:18 +00:00
|
|
|
.It Cm \en
|
2017-07-04 21:33:20 +00:00
|
|
|
Newline.
|
2017-05-17 12:05:18 +00:00
|
|
|
.It Cm \et
|
2017-07-04 21:33:20 +00:00
|
|
|
Tab.
|
2017-05-17 12:05:18 +00:00
|
|
|
.It Cm \&%%
|
2016-08-04 18:00:55 +00:00
|
|
|
A plain
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&% .
|
2016-08-11 18:37:39 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "b"
|
2018-02-04 19:15:59 +00:00
|
|
|
Human-readable size of the message
|
|
|
|
.Pq in kilobytes .
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Cm "%c"
|
|
|
|
A
|
2017-07-04 21:33:20 +00:00
|
|
|
.Sq Li >
|
|
|
|
on the current message,
|
|
|
|
otherwise a blank.
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "d"
|
|
|
|
Adaptive date of the message.
|
2020-01-02 15:15:35 +00:00
|
|
|
When
|
|
|
|
.Ar wd
|
|
|
|
is greater or equal to 19,
|
|
|
|
the timestamp is shown in dottime format
|
|
|
|
.Pq Lk https://dotti.me/ .
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "D"
|
2018-02-04 19:15:59 +00:00
|
|
|
ISO date of the message
|
|
|
|
.Pq year, month, day .
|
2016-08-04 18:00:55 +00:00
|
|
|
When
|
|
|
|
.Ar wd
|
2017-07-04 21:33:20 +00:00
|
|
|
is greater or equal to 16,
|
|
|
|
the hour-minute timestamp will also be shown.
|
2016-08-04 18:00:55 +00:00
|
|
|
When
|
|
|
|
.Ar wd
|
2017-07-04 21:33:20 +00:00
|
|
|
is greater or equal to 19,
|
|
|
|
seconds will also be shown.
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "f"
|
|
|
|
The
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li From\&:
|
2018-02-04 19:15:59 +00:00
|
|
|
.Po
|
|
|
|
or
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li To\&: ,
|
2018-02-04 19:15:59 +00:00
|
|
|
if the message is from us
|
|
|
|
.Pc .
|
2016-08-11 18:37:39 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "F"
|
2018-02-04 19:15:59 +00:00
|
|
|
The maildir folder the message resides in.
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "i"
|
|
|
|
.Ar wd
|
2018-02-04 19:15:59 +00:00
|
|
|
.Pq default: 1
|
2016-08-04 18:00:55 +00:00
|
|
|
spaces per indentation depth in the thread tree.
|
2016-08-11 18:37:39 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "I"
|
|
|
|
The
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li Message\&-ID\&:
|
2016-08-11 18:37:39 +00:00
|
|
|
of the message.
|
|
|
|
.It Cm "%M"
|
2018-02-04 19:15:59 +00:00
|
|
|
The raw maildir flags of the message.
|
2016-08-11 18:37:39 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "n"
|
|
|
|
The number of the message in the current sequence.
|
|
|
|
.It Cm "%r"
|
|
|
|
A
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&-
|
2016-08-11 18:37:39 +00:00
|
|
|
on a replied-to message, or a
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&:
|
2016-08-11 18:37:39 +00:00
|
|
|
on a forwarded message, or a blank.
|
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "R"
|
|
|
|
The filename of the message.
|
2016-08-04 18:00:55 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "s"
|
2018-02-04 19:15:59 +00:00
|
|
|
The subject of the message
|
|
|
|
.Pq defaults to remaining width .
|
2016-08-10 15:48:33 +00:00
|
|
|
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "S"
|
2018-02-04 19:15:59 +00:00
|
|
|
The subject of the message
|
|
|
|
.Pq defaults to remaining width ,
|
2016-08-10 15:48:33 +00:00
|
|
|
with leading
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li Re\&: ,
|
|
|
|
.Sq Li Fwd\&:
|
2016-08-10 15:48:33 +00:00
|
|
|
etc. stripped.
|
2016-08-11 18:37:39 +00:00
|
|
|
.It Cm "%t"
|
|
|
|
A
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&>
|
2016-08-11 18:37:39 +00:00
|
|
|
if you are in
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li To\&: ,
|
2016-08-11 18:37:39 +00:00
|
|
|
a
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&+
|
2016-08-11 18:37:39 +00:00
|
|
|
if you are in
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li Cc\&: ,
|
2016-08-11 18:37:39 +00:00
|
|
|
a
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&:
|
2016-08-11 18:37:39 +00:00
|
|
|
if you are in
|
2017-08-20 15:11:22 +00:00
|
|
|
.Sq Li Resent\&-To\&: ,
|
2017-07-04 21:33:20 +00:00
|
|
|
or a blank.
|
2016-08-11 18:37:39 +00:00
|
|
|
.It Cm "%u"
|
2017-07-04 21:33:20 +00:00
|
|
|
An
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&*
|
2017-07-04 21:33:20 +00:00
|
|
|
on a flagged message, a
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li \&.
|
2017-07-04 21:33:20 +00:00
|
|
|
on an unseen message, an
|
2017-05-17 12:05:18 +00:00
|
|
|
.Sq Li x
|
2016-08-11 18:37:39 +00:00
|
|
|
on a trashed message, or a blank.
|
2016-08-04 18:00:55 +00:00
|
|
|
.El
|
2017-05-15 13:11:21 +00:00
|
|
|
.El
|
2016-07-25 22:27:11 +00:00
|
|
|
.Sh MESSAGE FLAGS
|
2016-07-22 19:36:46 +00:00
|
|
|
.Bl -tag -width 2n -compact
|
|
|
|
.It Li \&>
|
|
|
|
The current message
|
|
|
|
.It Li \&.
|
2017-06-28 17:15:58 +00:00
|
|
|
An unseen message
|
2016-07-22 19:36:46 +00:00
|
|
|
.It Li x
|
|
|
|
A trashed message
|
|
|
|
.It Li \&*
|
|
|
|
A flagged message
|
|
|
|
.It Li \&-
|
|
|
|
A replied-to message
|
|
|
|
.El
|
2016-07-25 22:27:11 +00:00
|
|
|
.Sh SUBJECT FLAGS
|
|
|
|
.Bl -tag -width 2n -compact
|
|
|
|
.It Li \&>
|
|
|
|
You are in
|
2018-02-04 19:15:59 +00:00
|
|
|
.Sq Li To\&:
|
2016-07-25 22:27:11 +00:00
|
|
|
.It Li \&+
|
|
|
|
You are in
|
2019-01-14 17:15:37 +00:00
|
|
|
.Sq Li Cc\&:
|
2016-07-25 22:27:11 +00:00
|
|
|
.It Li \&:
|
|
|
|
You are in
|
2018-02-04 19:15:59 +00:00
|
|
|
.Sq Li Resent\&-To\&:
|
2016-07-25 22:27:11 +00:00
|
|
|
.El
|
2017-05-23 13:25:28 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Bl -tag -width MBLAZE_PAGER
|
|
|
|
.It Ev MBLAZE_PAGER
|
|
|
|
Any non-empty value of the environment variable
|
|
|
|
.Ev MBLAZE_PAGER
|
|
|
|
is used instead of the standard pagination program, specified in
|
|
|
|
.Ev PAGER .
|
2017-07-04 21:33:20 +00:00
|
|
|
When empty, or set to
|
2017-05-23 13:25:28 +00:00
|
|
|
.Sq Ic cat ,
|
|
|
|
no pager is spawned.
|
|
|
|
.El
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Ex -std
|
|
|
|
.Sh SEE ALSO
|
2017-05-15 13:11:21 +00:00
|
|
|
.Xr mblaze-profile 5 ,
|
2016-07-22 19:43:03 +00:00
|
|
|
.Xr mmsg 7
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh AUTHORS
|
2017-01-21 16:17:12 +00:00
|
|
|
.An Leah Neukirchen Aq Mt leah@vuxu.org
|
2016-07-22 19:36:46 +00:00
|
|
|
.Sh LICENSE
|
|
|
|
.Nm
|
|
|
|
is in the public domain.
|
|
|
|
.Pp
|
|
|
|
To the extent possible under law,
|
|
|
|
the creator of this work
|
|
|
|
has waived all copyright and related or
|
|
|
|
neighboring rights to this work.
|
|
|
|
.Pp
|
|
|
|
.Lk http://creativecommons.org/publicdomain/zero/1.0/
|