mblaze/man/mscan.1

230 lines
4.1 KiB
Groff
Raw Permalink Normal View History

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
.Nd generate one-line message summaries
2016-07-22 19:36:46 +00:00
.Sh SYNOPSIS
.Nm
.Op Fl I
.Op Fl n
.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.
.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.
.Pc
2016-07-22 19:36:46 +00:00
.Pp
If no
.Ar msgs
are specified,
2016-07-22 19:36:46 +00:00
.Nm
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,
.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
.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
prints relevant flags,
the sequence number
.Pq if applicable ,
2016-07-22 19:36:46 +00:00
the date,
the originator,
and the subject of the message
.Pq possibly indented .
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" .
.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
The following formatting codes may be used
.Po
.Ar wd
overrides the default width
.Pc :
2016-08-04 18:00:55 +00:00
.Bl -tag -width Ds
.It Cm \en
Newline.
.It Cm \et
Tab.
.It Cm \&%%
2016-08-04 18:00:55 +00:00
A plain
.Sq Li \&% .
2016-08-11 18:37:39 +00:00
.It Cm "%" Ns Oo Ar wd Oc Ns Cm "b"
Human-readable size of the message
.Pq in kilobytes .
2016-08-04 18:00:55 +00:00
.It Cm "%c"
A
.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"
ISO date of the message
.Pq year, month, day .
2016-08-04 18:00:55 +00:00
When
.Ar wd
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
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\&:
.Po
or
2017-08-20 15:11:22 +00:00
.Sq Li To\&: ,
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"
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
.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"
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
.Sq Li \&-
2016-08-11 18:37:39 +00:00
on a replied-to message, or a
.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"
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"
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
.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
.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
.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\&: ,
or a blank.
2016-08-11 18:37:39 +00:00
.It Cm "%u"
An
.Sq Li \&*
on a flagged message, a
.Sq Li \&.
on an unseen message, an
.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
.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
.Sq Li Resent\&-To\&:
2016-07-25 22:27:11 +00:00
.El
.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 .
When empty, or set to
.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/